update
[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 RemoveHandler .phar
14 <Files "*.phar">
15 SetHandler default-handler
16 ForceType application/phar
17 </Files>
18 <FilesMatch ".+\.ph(p|tml)$">
19 SetHandler "proxy:unix:/run/php/php-pharext.sock|fcgi://localhost"
20 </FilesMatch>
21 </Directory>
22 </Macro>
23
24 <VirtualHost *:80>
25 Use pharext_host_defs
26 Redirect permanent / https://pharext.org/
27 </VirtualHost>
28
29 <IfModule ssl_module>
30 <VirtualHost *:443>
31 Use pharext_host_defs
32 Include "bits/hsts"
33 SSLEngine on
34 SSLUseStapling on
35 SSLCertificateKeyFile /etc/letsencrypt/live/pharext.org/privkey.pem
36 SSLCertificateFile /etc/letsencrypt/live/pharext.org/fullchain.pem
37 </VirtualHost>
38 </IfModule>
39 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet