From d92b524bb72e824ef3ea60ce692b9b9ab3e5c56b Mon Sep 17 00:00:00 2001 From: doug Date: Mon, 26 Oct 2015 14:01:40 -0400 Subject: [PATCH] fix proxy configuration --- debian/changelog | 6 ++++ debian/patches/fix-proxy-configuration | 43 ++++++++++++++++++++++++++ debian/patches/series | 1 + debian/postinst | 3 ++ sites-available/securityonion.conf | 6 ++-- 5 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 debian/patches/fix-proxy-configuration diff --git a/debian/changelog b/debian/changelog index 6be5d93..807673c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +securityonion-web-page (20141015-0ubuntu0securityonion40) trusty; urgency=medium + + * fix proxy configuration + + -- Doug Burks Mon, 26 Oct 2015 14:01:07 -0400 + securityonion-web-page (20141015-0ubuntu0securityonion39) trusty; urgency=medium * Apache is going to proxy from /elsa-query/ to port 3154 diff --git a/debian/patches/fix-proxy-configuration b/debian/patches/fix-proxy-configuration new file mode 100644 index 0000000..a5e4e06 --- /dev/null +++ b/debian/patches/fix-proxy-configuration @@ -0,0 +1,43 @@ +Description: + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . + securityonion-web-page (20141015-0ubuntu0securityonion40) trusty; urgency=medium + . + * fix proxy configuration +Author: Doug Burks + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- securityonion-web-page-20141015.orig/sites-available/securityonion.conf ++++ securityonion-web-page-20141015/sites-available/securityonion.conf +@@ -2,12 +2,12 @@ + + ServerAdmin webmaster@localhost + +- DocumentRoot /var/www/html ++ DocumentRoot /var/www/so + + ProxyPass /elsa-query http://127.0.0.1:3154/ + ProxyPassReverse /elsa-query http://127.0.0.1:3154/ +- ProxyPass /inc http://127.0.0.1:3154/ +- ProxyPassReverse /inc http://127.0.0.1:3154/ ++ ProxyPass /inc http://127.0.0.1:3154/inc ++ ProxyPassReverse /inc http://127.0.0.1:3154/inc + + # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, + # error, crit, alert, emerg. diff --git a/debian/patches/series b/debian/patches/series index 6dc0122..8734a86 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -26,3 +26,4 @@ Issue-824:-securityonion-web-page:-htmlspecialchars securityonion-web-page:-move-SSH-Logins-query-to-Host-Logs-category-#810 add-more-htmlspecialchars Apache-is-going-to-proxy-from-elsa-query-to-port-3154 +fix-proxy-configuration diff --git a/debian/postinst b/debian/postinst index 0f651b2..e1cb116 100644 --- a/debian/postinst +++ b/debian/postinst @@ -30,6 +30,9 @@ case "$1" in cp $FILE.empty $FILE || echo "Error copying $FILE.empty to $FILE." fi + # Enable Apache proxy modules + a2enmod proxy proxy_http || echo "Error enabling Apache proxy modules." + ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/sites-available/securityonion.conf b/sites-available/securityonion.conf index 1c6cc60..a3b7342 100644 --- a/sites-available/securityonion.conf +++ b/sites-available/securityonion.conf @@ -2,12 +2,12 @@ ServerAdmin webmaster@localhost - DocumentRoot /var/www/html + DocumentRoot /var/www/so ProxyPass /elsa-query http://127.0.0.1:3154/ ProxyPassReverse /elsa-query http://127.0.0.1:3154/ - ProxyPass /inc http://127.0.0.1:3154/ - ProxyPassReverse /inc http://127.0.0.1:3154/ + ProxyPass /inc http://127.0.0.1:3154/inc + ProxyPassReverse /inc http://127.0.0.1:3154/inc # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg.