From 44d79bf8ea86803076cfbb65acc9053151b77ea4 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Tue, 3 Sep 2019 10:25:56 +0200 Subject: [PATCH] Listen on specific interface --- tmpl/handler-apache2.4.conf | 6 +++++- tmpl/manager-apache2.4.conf | 6 +++++- tmpl/portal-apache2.4.conf | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tmpl/handler-apache2.4.conf b/tmpl/handler-apache2.4.conf index 50d86e1..4578cb5 100644 --- a/tmpl/handler-apache2.4.conf +++ b/tmpl/handler-apache2.4.conf @@ -23,7 +23,11 @@ ErrorDocument 500 https//%%authWebName/lmerror/500 ErrorDocument 502 https//%%authWebName/lmerror/502 ErrorDocument 503 https//%%authWebName/lmerror/503 - +%if %%container_ip_web != '127.0.0.1' + +%else + +%end if ServerName %%reloadWebName # Configuration reload mechanism (only 1 per physical server is diff --git a/tmpl/manager-apache2.4.conf b/tmpl/manager-apache2.4.conf index ce91c02..7ca62ae 100644 --- a/tmpl/manager-apache2.4.conf +++ b/tmpl/manager-apache2.4.conf @@ -7,7 +7,11 @@ #LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng # Manager virtual host (manager.__DNSDOMAIN__) - +%if %%container_ip_web != '127.0.0.1' + +%else + +%end if ServerName %%managerWebName LogLevel notice # See above to set LLNG user id in Apache logs diff --git a/tmpl/portal-apache2.4.conf b/tmpl/portal-apache2.4.conf index 113bb2d..7843a45 100644 --- a/tmpl/portal-apache2.4.conf +++ b/tmpl/portal-apache2.4.conf @@ -7,7 +7,11 @@ #LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng # Portal Virtual Host (auth.__DNSDOMAIN__) - +%if %%container_ip_web != '127.0.0.1' + +%else + +%end if ServerName %%authWebName # See above to set LLNG user id in Apache logs #CustomLog ${APACHE_LOG_DIR}/portal.log llng