diff --git a/install-scripts/reverse-proxy b/install-scripts/reverse-proxy index b08e564..0650c1a 100644 --- a/install-scripts/reverse-proxy +++ b/install-scripts/reverse-proxy @@ -25,6 +25,8 @@ install_nginx(){ exit 1; fi; + # copy in /etc/hosts + echo -e "127.0.0.1\t$server_name" | sudo tee -a /etc/hosts >/dev/null; # (3) Copy config # echo "1- build configuration" @@ -54,6 +56,8 @@ install_nginx(){ } install_httpd(){ echo -e "\e[33m>\e[0m httpd installer \e[33m<\e[0m\n" + echo "no installer for now...\n" + exit 1 } install_apache(){ echo -e "\e[33m>\e[0m apache installer \e[33m<\e[0m\n" @@ -79,6 +83,8 @@ install_apache(){ exit 1; fi; + # copy in /etc/hosts + echo -e "127.0.0.1\t$server_name" | sudo tee -a /etc/hosts >/dev/null; # (3) Copy config # echo "1- build configuration" @@ -185,3 +191,4 @@ else fi; +exit 0 \ No newline at end of file