2023-08-16 20:51:05 +02:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName {{ dmarcsrg_domain }}
|
2023-08-16 21:15:16 +02:00
|
|
|
DocumentRoot {{ dmarcsrg_home }}
|
2023-08-16 20:51:05 +02:00
|
|
|
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>
|
|
|
|
|
2023-08-16 21:15:16 +02:00
|
|
|
<Directory {{ dmarcsrg_home }}>
|
2023-08-16 20:51:05 +02:00
|
|
|
DirectoryIndex index.php
|
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride All
|
|
|
|
Require all granted
|
|
|
|
</Directory>
|
|
|
|
|
2023-08-16 21:15:16 +02:00
|
|
|
<DirectoryMatch "^/{{ dmarcsrg_home }}/(classes|config|tests|utils)/*">
|
2023-08-16 20:51:05 +02:00
|
|
|
Options None
|
|
|
|
Require all denied
|
|
|
|
</DirectoryMatch>
|
|
|
|
</VirtualHost>
|