From d17521d51fc571844eacd7278ce268004325b803 Mon Sep 17 00:00:00 2001 From: Ivan Grynenko Date: Wed, 6 Jul 2016 13:35:44 +1000 Subject: [PATCH] Extending vhost apache directives. --- group_vars/all.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/group_vars/all.yml b/group_vars/all.yml index 9cd5d83..868d938 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -81,11 +81,20 @@ apache_vhosts: extra_parameters: | RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + ErrorLog "/var/log/httpd/{{ server_hostname }}_error.log" + ServerSignature Off ProxyTimeout 600 ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/html/{{ server_hostname }}/$1" + CustomLog "/var/log/httpd/{{ server_hostname }}_access.log" combined ProxySet timeout=600 + + Options Indexes FollowSymLinks + AllowOverride All + DirectoryIndex index.php + Require all granted + # Disable All Updates # By default automatic updates are enabled, set this value to true to disable all automatic updates