From f484c71de0fd0d94d30b02493c7c1e009d8bef40 Mon Sep 17 00:00:00 2001 From: ictmaatwerk Date: Mon, 10 Sep 2018 13:33:42 +0000 Subject: [PATCH] 'Apache-RevProxNGINX-Installer.sh' updaten --- Apache-RevProxNGINX-Installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apache-RevProxNGINX-Installer.sh b/Apache-RevProxNGINX-Installer.sh index d52d9ce..a130e3a 100644 --- a/Apache-RevProxNGINX-Installer.sh +++ b/Apache-RevProxNGINX-Installer.sh @@ -8,7 +8,7 @@ #============================================================================== # Set server IP variable for apache access -server_ip=$(curl ifconfig.me) +server_ip=$(hostname -I|cut -f1 -d ' ') # Block direct apache acces ufw deny 8080/tcp ufw allow from "$server_ip" proto tcp to any port 8080