dark mode
[pharext/replicator.pharext.org] / etc / apache2.conf
1 <Macro replicator_host_defs>
2 ServerName replicator.pharext.org
3 ServerAdmin webmaster@pharext.org
4
5 DocumentRoot /var/www/replicator/public
6
7 <Directory /var/www/replicator/public>
8 SetEnv owners m6w6,pharext,mdref
9 Options Indexes FollowSymLinks MultiViews
10 AllowOverride None
11 Require all granted
12 RemoveHandler .phar
13 <Files "*.phar">
14 SetHandler default-handler
15 ForceType application/phar
16 </Files>
17 <FilesMatch ".+\.ph(p|tml)$">
18 SetHandler "proxy:unix:/run/php/php-replicator.sock|fcgi://localhost"
19 </FilesMatch>
20 </Directory>
21 </Macro>
22
23 <VirtualHost *:80>
24 Use replicator_host_defs
25 Use ssl_redirect
26 </VirtualHost>
27
28 <VirtualHost *:443>
29 Use replicator_host_defs
30 Use ssl_defs "pharext.org" "hsts"
31 </VirtualHost>
32
33 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet