Help with nginx configuration #1989
Unanswered
syy110112
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have 2 input page index.html 、admin.html,it have 2 router and use history mode,and i use nginx publish,when refresh page it will be 404,so i change nginx setting like this
location / {
try_files $uri $uri/ /index.html;
}
but new problems arose,the setting is index.html,so when i access admin.html and refresh it will change to index.html
now i use hash mode can solve this problem,but i still want to use history mode
Beta Was this translation helpful? Give feedback.
All reactions