roles.webcluster/webcluster-worker/templates/etc/apache2/sites-available/worker.conf.j2

14 lines
452 B
Plaintext
Raw Normal View History

2020-12-01 22:20:33 +00:00
<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>