14 lines
452 B
Plaintext
14 lines
452 B
Plaintext
|
<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>
|