From 26648e3752c831254bff4e563400161fc45dd1c5 Mon Sep 17 00:00:00 2001 From: MrGeneration Date: Wed, 21 Nov 2018 17:50:05 +0100 Subject: [PATCH] Update Webserver configs (apache2 and nginx) This fixes issue 2365 and simply changes config files to ipv4-connects to the Zammad-Backend. --- contrib/apache2/zammad.conf | 6 +++--- contrib/apache2/zammad_ssl.conf | 10 +++++----- contrib/nginx/zammad.conf | 4 ++-- contrib/nginx/zammad_ssl.conf | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/contrib/apache2/zammad.conf b/contrib/apache2/zammad.conf index 7d9eeb5e0..8a15a3b97 100644 --- a/contrib/apache2/zammad.conf +++ b/contrib/apache2/zammad.conf @@ -18,15 +18,15 @@ ProxyRequests Off ProxyPreserveHost On - + Require local ProxyPass /assets ! ProxyPass /favicon.ico ! ProxyPass /robots.txt ! - ProxyPass /ws ws://localhost:6042/ - ProxyPass / http://localhost:3000/ + ProxyPass /ws ws://127.0.0.1:6042/ + ProxyPass / http://127.0.0.1:3000/ DocumentRoot "/opt/zammad/public" diff --git a/contrib/apache2/zammad_ssl.conf b/contrib/apache2/zammad_ssl.conf index b9c23f8b9..84f352656 100644 --- a/contrib/apache2/zammad_ssl.conf +++ b/contrib/apache2/zammad_ssl.conf @@ -37,21 +37,21 @@ ProxyRequests Off ProxyPreserveHost On - + Require local ProxyPass /assets ! ProxyPass /favicon.ico ! ProxyPass /robots.txt ! - ProxyPass /ws ws://localhost:6042/ - ProxyPass / http://localhost:3000/ + ProxyPass /ws ws://127.0.0.1:6042/ + ProxyPass / http://127.0.0.1:3000/ # Use settings below if proxying does not work and you receive HTTP-Errror 404 # if you use the settings below, make sure to comment out the above two options # This may not apply to all systems, applies to openSuse - #ProxyPass /ws ws://localhost:6042/ "retry=1 acque=3000 timeout=600 keepalive=On" - #ProxyPass / http://localhost:3000/ "retry=1 acque=3000 timeout=600 keepalive=On" + #ProxyPass /ws ws://127.0.0.1:6042/ "retry=1 acque=3000 timeout=600 keepalive=On" + #ProxyPass / http://127.0.0.1:3000/ "retry=1 acque=3000 timeout=600 keepalive=On" DocumentRoot "/opt/zammad/public" diff --git a/contrib/nginx/zammad.conf b/contrib/nginx/zammad.conf index c635dba6d..72c59cdf3 100644 --- a/contrib/nginx/zammad.conf +++ b/contrib/nginx/zammad.conf @@ -3,11 +3,11 @@ # upstream zammad-railsserver { - server localhost:3000; + server 127.0.0.1:3000; } upstream zammad-websocket { - server localhost:6042; + server 127.0.0.1:6042; } server { diff --git a/contrib/nginx/zammad_ssl.conf b/contrib/nginx/zammad_ssl.conf index d7a43f285..47457cdec 100644 --- a/contrib/nginx/zammad_ssl.conf +++ b/contrib/nginx/zammad_ssl.conf @@ -9,11 +9,11 @@ # upstream zammad-railsserver { - server localhost:3000; + server 127.0.0.1:3000; } upstream zammad-websocket { - server localhost:6042; + server 127.0.0.1:6042; } server {