Skip to content

Commit

Permalink
different nginx default try files
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc23007 committed Nov 17, 2024
1 parent 147c287 commit ddcb136
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ server {

# react app specific
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.html break;
}
try_files $uri /index.html;
}
}

0 comments on commit ddcb136

Please sign in to comment.