diff --git a/web/index.html b/web/index.html index cfc5a20..0c3bc2f 100644 --- a/web/index.html +++ b/web/index.html @@ -169,7 +169,7 @@
- eval "$(wget -qO- http://SERVER_IP/deployment/full)" + eval "$(wget -qO- http://SERVER_IP/deployment/y)"
diff --git a/web/web_setup.sh b/web/web_setup.sh index fe593ec..69e2473 100755 --- a/web/web_setup.sh +++ b/web/web_setup.sh @@ -91,6 +91,7 @@ configure_apache_arch() { ServerAdmin webmaster@localhost DocumentRoot "/srv/http" DirectoryIndex index.html + RedirectMatch 301 ^/$ http://$SERVER_IP/deployment/ Options -Indexes +FollowSymLinks @@ -119,7 +120,6 @@ EOF fi # Start/restart Apache - sudo systemctl enable httpd sudo systemctl restart httpd } @@ -131,6 +131,7 @@ configure_apache_debian() { ServerAdmin webmaster@localhost DocumentRoot "/var/www/html" DirectoryIndex index.html + RedirectMatch 301 ^/$ http://$SERVER_IP/deployment/ Alias /deployment $SERVER_ROOT @@ -157,7 +158,6 @@ EOF sudo a2ensite deployment # Start/restart Apache - sudo systemctl enable apache2 sudo systemctl restart apache2 } @@ -169,6 +169,7 @@ configure_apache_redhat() { ServerAdmin webmaster@localhost DocumentRoot "/var/www/html" DirectoryIndex index.html + RedirectMatch 301 ^/$ http://$SERVER_IP/deployment/ Alias /deployment $SERVER_ROOT