From 907b4e6bbfbfce4840808db567a2b1b47a0267f6 Mon Sep 17 00:00:00 2001 From: Sri Ramkrishna Date: Wed, 22 Mar 2017 18:25:25 +0000 Subject: [PATCH] Added nextcloud vhost for testing --- modules/haproxy/files/haproxy.cfg | 1 + .../httpd/files/sites.d/nextcloud.gnome.org.conf | 12 ++++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 modules/httpd/files/sites.d/nextcloud.gnome.org.conf diff --git a/modules/haproxy/files/haproxy.cfg b/modules/haproxy/files/haproxy.cfg index 5f37846..0a562fc 100644 --- a/modules/haproxy/files/haproxy.cfg +++ b/modules/haproxy/files/haproxy.cfg @@ -42,6 +42,7 @@ frontend front_web use_backend back_mail if { hdr(host) -i mail.gnome.org } use_backend back_mail if { hdr(host) -i lists.gnome.org } use_backend back_cloud if { hdr(host) -i cloud.gnome.org } + use_backend back_cloud if { hdr(host) -i nextcloud.gnome.org } use_backend back_wiki if { hdr(host) -i live.gnome.org } use_backend back_wiki if { hdr(host) -i wiki.gnome.org } use_backend back_planet if { hdr(host) -i planet.gnome.org } diff --git a/modules/httpd/files/sites.d/nextcloud.gnome.org.conf b/modules/httpd/files/sites.d/nextcloud.gnome.org.conf new file mode 100644 index 0000000..5e4afc8 --- /dev/null +++ b/modules/httpd/files/sites.d/nextcloud.gnome.org.conf @@ -0,0 +1,12 @@ + + ServerName nextcloud.gnome.org + DocumentRoot /srv/http/nextcloud.gnome.org/html + + LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined + LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy + SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded + + CustomLog "|/usr/bin/logger -p local4.info -t apache" combined env=!forwarded + CustomLog "|/usr/bin/logger -p local4.info -t apache" proxy env=forwarded + ErrorLog syslog:local5 + -- 1.7.1