Skip to content

Commit b60ff19

Browse files
committed
fix(dev-nginx): proxy root to Vite dev server to avoid 403 for empty /var/www/html
1 parent 4557608 commit b60ff19

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

config/nginx/sites-available/pubnix-dev

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,8 @@ server {
4747
default_type text/html;
4848
}
4949

50-
# Main web interface
50+
# Main web interface: proxy all root paths to the Vite dev server
5151
location / {
52-
try_files $uri $uri/ @frontend;
53-
}
54-
55-
# Frontend fallback for SPA routing (proxy to web-dev service)
56-
location @frontend {
5752
proxy_pass http://web-dev:3000;
5853
proxy_set_header Host $host;
5954
proxy_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)