macro 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 Use ssl_redirect
27 </VirtualHost>
28
29 <VirtualHost *:443>
30 Use pharext_host_defs
31 Use ssl_defs "pharext.org" "hsts"
32 </VirtualHost>
33
34 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet