aeba207f1f066ede6973d6cd70f697bc218e616c
[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 <Files "*.phar">
13 ForceType application/phar
14 </Files>
15 </Directory>
16 </Macro>
17
18 <VirtualHost *:80>
19 Use replicator_host_defs
20 Redirect permanent / https://replicator.pharext.org/
21 </VirtualHost>
22
23 <IfModule ssl_module>
24 <VirtualHost *:443>
25 Use replicator_host_defs
26 Include "bits/hsts"
27 SSLEngine on
28 SSLUseStapling on
29 SSLCertificateKeyFile /etc/letsencrypt/live/pharext.org/privkey.pem
30 SSLCertificateFile /etc/letsencrypt/live/pharext.org/fullchain.pem
31 </VirtualHost>
32 </IfModule>
33 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet