dbb2a406478cf21897ef5a54cce6bc007764a60f
[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 Redirect permanent / https://replicator.pharext.org/
26 </VirtualHost>
27
28 <IfModule ssl_module>
29 <VirtualHost *:443>
30 Use replicator_host_defs
31 Include "bits/hsts"
32 SSLEngine on
33 SSLUseStapling on
34 SSLCertificateKeyFile /etc/letsencrypt/live/pharext.org/privkey.pem
35 SSLCertificateFile /etc/letsencrypt/live/pharext.org/fullchain.pem
36 </VirtualHost>
37 </IfModule>
38 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet