Public Access
Update nginx.conf
This commit is contained in:
1 parent
2e63b7cfcc
commit
1bb549c4df
1 file changed
+3
-2
+3
-2
@@ -1,10 +1,11 @@
|
||||
server {
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
# Redirect all unknown paths to index.html to allow React Router to handle the routing
|
||||
|
||||
# Handle React Router navigation
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user