roles.webcluster/webcluster-worker/templates/etc/apache2/sites-available/worker.conf.j2
2020-12-01 23:20:33 +01:00

14 lines
452 B
Django/Jinja

<VirtualHost *:80>
ServerName {{ inventory_hostname }}
DocumentRoot /var/www/worker
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:4001/var/www/worker/$1
DirectoryIndex index.php index.xhtml index.html
SetEnvIf Request_URI "^/haproxy\.check$" dontlog
CustomLog ${APACHE_LOG_DIR}/worker_{{ inventory_hostname }}.access.log remoteip_combined env=!dontlog
ErrorLog ${APACHE_LOG_DIR}/worker_{{ inventory_hostname }}.error.log
</VirtualHost>