27 lines
812 B
Django/Jinja
27 lines
812 B
Django/Jinja
<VirtualHost *:80>
|
|
ServerName {{ dmarcsrg_domain }}
|
|
DocumentRoot {{ dmarcsrg_home }}/current
|
|
ErrorLog /var/log/apache2/{{ dmarcsrg_domain }}.error
|
|
|
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
|
SetHandler "proxy:unix:/run/php/php-fpm-{{ dmarcsrg_user}}.sock|fcgi://dmarcsrg"
|
|
</FilesMatch>
|
|
<FilesMatch ".+\.phps$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
<FilesMatch "^\.ph(ar|p|ps|tml)$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
<Directory {{ dmarcsrg_home }}/current>
|
|
DirectoryIndex index.php
|
|
Options FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<DirectoryMatch "^/{{ dmarcsrg_home }}/current/(classes|config|tests|utils)/*">
|
|
Options None
|
|
Require all denied
|
|
</DirectoryMatch>
|
|
</VirtualHost>
|