Remoteip fixes.

pull/63/head
Ivan Grynenko 8 years ago
parent 4119fa92f7
commit 1f9761a972
  1. 1
      group_vars/all.yml
  2. 1
      roles/ansible-role-apache/templates/90-remoteip.conf.j2

@ -85,6 +85,7 @@ apache_vhosts:
ServerSignature Off
ProxyTimeout 600
ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/html/{{ server_hostname }}/$1"
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "/var/log/httpd/{{ server_hostname }}_access.log" combined
<Proxy fcgi://localhost:9000>
ProxySet timeout=600

@ -3,6 +3,5 @@ LoadModule remoteip_module modules/mod_remoteip.so
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
RemoteIPHeader X-Real-IP
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 127.0.0.1
RemoteIPTrustedProxy 127.0.0.1