-
I'm using Docsify + VPS to build a document system on my company intranet. One of the pages needs to be set up for public access, and I'm going to use nginx for that, so I can't carry But when I configured it, I found that I can't access this page directly (type the path of the subpage directly in the browser, for example Is there any way to solve this problem? How do I access a page directly in history mode? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, it isn't related to Docsify, but with any static site that does not use hash routing, you'll have to configure your server to send the same HTML (as for the root Here's where to start on that with Nginx: https://www.google.com/search?q=nginx+redirect+all+paths+to+index.html |
Beta Was this translation helpful? Give feedback.
Hello, it isn't related to Docsify, but with any static site that does not use hash routing, you'll have to configure your server to send the same HTML (as for the root
/
path) for any path. Your server currently responds with a 404 instead of sending back the index.html.Here's where to start on that with Nginx:
https://www.google.com/search?q=nginx+redirect+all+paths+to+index.html