You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if file index index.html or index.htm exist it will use the file else 403 Forbidden, and proxy_pass is never called
to fix I use this
# serve static file using Nginxlocation~* \.(css|js|jpg|jpeg|png|gif|ico|woff|woff2|svg)$ { # remove the "$" above to match like: style.css?v=1.0expires7d;add_header Cache-Control "public, no-transform";try_files$uri =404; # if file not found return404}# use proxy pass including "/" onlylocation / { #try_files $uri $uri/ @backend; # disabledproxy_passhttp://localhost:8080;proxy_http_version 1.1;proxy_set_header Connection "";}
Activity