diff --git a/sites-available/default b/sites-available/default index 047373c..7c9ead5 100644 --- a/sites-available/default +++ b/sites-available/default @@ -38,7 +38,7 @@ server { # # include snippets/snakeoil.conf; - root /home/admin/frontend-customer/dist; + root /var/www/html/robeing; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; @@ -66,7 +66,7 @@ server { location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. - try_files $uri $uri/ /index.html; + try_files $uri /index.html; } # GooseFarm API - must come before /goosefarm for priority @@ -231,7 +231,7 @@ server { # # include snippets/snakeoil.conf; - root /home/admin/frontend-customer/dist; + root /var/www/html/robeing; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; @@ -262,23 +262,22 @@ server { index index.html; } - # Zari frontend (Next.js on localhost:3010) - location /zari { - proxy_pass http://127.0.0.1:3010; - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 120s; - proxy_buffering off; - proxy_request_buffering off; - proxy_max_temp_file_size 0; + # Legacy Starsandi paths on ro-being.com -> starsandi.com + location ~ ^/(startsandi|zari)(/.*)?$ { + return 301 https://starsandi.com$2$is_args$args; + } + + location = /starsandi { + return 301 https://starsandi.com/; + } + + location ~ ^/starsandi/(.*)$ { + return 301 https://starsandi.com/$1$is_args$args; } # Main application static files location / { - try_files $uri $uri/ /index.html; + try_files $uri /index.html; } # GooseFarm API - must come before /goosefarm for priority