Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
fix proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dougburks committed Oct 26, 2015
1 parent b32b056 commit d92b524
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
securityonion-web-page (20141015-0ubuntu0securityonion40) trusty; urgency=medium

* fix proxy configuration

-- Doug Burks <doug.burks@gmail.com> 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
Expand Down
43 changes: 43 additions & 0 deletions debian/patches/fix-proxy-configuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Description: <short summary of the patch>
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 <doug.burks@gmail.com>

---
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: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- securityonion-web-page-20141015.orig/sites-available/securityonion.conf
+++ securityonion-web-page-20141015/sites-available/securityonion.conf
@@ -2,12 +2,12 @@
<VirtualHost _default_:443>
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.
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions sites-available/securityonion.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<VirtualHost _default_:443>
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.
Expand Down

0 comments on commit d92b524

Please sign in to comment.