add config
[pharext/pharext.org] / etc / apache2.conf
1 <Macro pharext_host_defs>
2 ServerName pharext.org
3 ServerAlias www.pharext.org
4 ServerAdmin webmaster@pharext.org
5
6 DocumentRoot /var/www/pharext/public
7
8 <Directory /var/www/pharext/public>
9 Options Indexes FollowSymLinks MultiViews
10 AllowOverride All
11 Require all granted
12 SetEnv APP_ENVIRONMENT production
13 <Files "*.phar">
14 ForceType application/phar
15 </Files>
16 </Directory>
17 </Macro>
18
19 <VirtualHost *:80>
20 Use pharext_host_defs
21 Redirect permanent / https://pharext.org/
22 </VirtualHost>
23
24 <IfModule ssl_module>
25 <VirtualHost *:443>
26 Use pharext_host_defs
27 Include "bits/hsts"
28 SSLEngine on
29 SSLUseStapling on
30 SSLCertificateKeyFile /etc/letsencrypt/live/pharext.org/privkey.pem
31 SSLCertificateFile /etc/letsencrypt/live/pharext.org/fullchain.pem
32 </VirtualHost>
33 </IfModule>
34 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet