diff --git a/docs/nginx_photo_maintenance b/docs/nginx_photo_maintenance index 53db000..f8be793 100644 --- a/docs/nginx_photo_maintenance +++ b/docs/nginx_photo_maintenance @@ -55,10 +55,10 @@ server { alias /var/www/photos/photo21/static; } - error_page 503 /maintenance.html ; + error_page 503 /static/maintenance.html ; location /maintenance.html { - try_files /var/www/photos/photo21/docs/maintenance.html =404; + alias /var/www/photos/photo21/static ; } location / { diff --git a/maintenance_tool.sh b/maintenance_tool.sh old mode 100644 new mode 100755 index 5ce6f4e..290e4dd --- a/maintenance_tool.sh +++ b/maintenance_tool.sh @@ -8,8 +8,8 @@ # --- CONFIGURATION --- # IMPORTANT: Change this path to the root directory of your website. # The script MUST have write permissions to this directory. -SITE_ROOT="/var/www/photos/photo21/" -FLAG_FILE="$SITE_ROOTdocs/maintenance.flag" +SITE_ROOT="/var/www/photos/photo21" +FLAG_FILE="$SITE_ROOT/docs/maintenance.flag" # --------------------- # Function to display current status @@ -66,4 +66,4 @@ toggle_mode echo "=================================================" echo "Script finished." -echo "=================================================" \ No newline at end of file +echo "================================================="