From 8d62047d23a9b5cd419eb9ace06b8bf102de0b5f Mon Sep 17 00:00:00 2001 From: ictmaatwerk Date: Mon, 10 Sep 2018 13:31:37 +0000 Subject: [PATCH] 'Apache-RevProxNGINX-Installer.sh' updaten --- Apache-RevProxNGINX-Installer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Apache-RevProxNGINX-Installer.sh b/Apache-RevProxNGINX-Installer.sh index ead7943..d52d9ce 100644 --- a/Apache-RevProxNGINX-Installer.sh +++ b/Apache-RevProxNGINX-Installer.sh @@ -7,9 +7,11 @@ # #============================================================================== +# Set server IP variable for apache access +server_ip=$(curl ifconfig.me) # Block direct apache acces ufw deny 8080/tcp -ufw allow from $server_ip proto tcp to any port 8080 +ufw allow from "$server_ip" proto tcp to any port 8080 #-------------------# # APACHE + PHP-FPM #