update config
[mdref/mdref.m6w6.name] / etc / apache2.conf
1 <Macro mdref_host_defs>
2 ServerName mdref.m6w6.name
3 ServerAdmin webmaster@m6w6.name
4
5 DocumentRoot /var/www/mdref/mdref/public
6
7 <Directory /var/www/mdref/mdref/public>
8 AllowOverride None
9 Require all granted
10 DirectorySlash Off
11 RewriteEngine On
12 RewriteCond %{REQUEST_FILENAME} -f [OR]
13 RewriteCond %{REQUEST_FILENAME} -d [OR]
14 RewriteCond %{REQUEST_FILENAME} -l
15 RewriteRule ^ - [L]
16 RewriteRule ^ index.php [L]
17 <FilesMatch ".+\.ph(p|tml)$">
18 SetHandler "proxy:unix:/run/php/php-mdref.sock|fcgi://localhost"
19 </FilesMatch>
20 </Directory>
21 </Macro>
22
23 <VirtualHost *:80>
24 Use mdref_host_defs
25 <IfModule ssl_module>
26 Redirect permanent / https://mdref.m6w6.name/
27 </IfModule>
28 </VirtualHost>
29
30 <IfModule ssl_module>
31 <VirtualHost *:443>
32 Use mdref_host_defs
33 Include "bits/hsts"
34 SSLEngine on
35 SSLUseStapling on
36 SSLCertificateKeyFile /etc/letsencrypt/live/m6w6.name/privkey.pem
37 SSLCertificateFile /etc/letsencrypt/live/m6w6.name/fullchain.pem
38 </VirtualHost>
39 </IfModule>
40 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet