In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
preface
Now react application is common, recently encountered a problem in the configuration react project, through the search of relevant information finally found a solution, so I want to summarize and share it with friends in need, the following words do not say much, let's take a look at the detailed introduction.
find problems
As you know, when we finish the project and deploy it, my configuration is simple
location /demo { root E:/; index index.html index.htm;}
There is a problem with this configuration, which can only be accessed at http://localhost/demo/.
If you want to access other interfaces such as http://localhost/demo/page1, report 404 page not found.
But when I was developing, there was really no problem. If I could access it, I thought, do I have to use node to project? No way, maybe I can't configure it myself.
solution
Finally found a way, in other people's nginx.config found an extra line of things.
location /demo { root E:/; #Add this, and you can configure path directly after url. try_files $uri /demo/index.html; index index.html index.htm;}
Why, it's unclear, but it works.
Mark it here for later use.
summary
The above is the whole content of this article, I hope the content of this article has a certain reference value for everyone's study or work, if you have questions, you can leave a message to exchange, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 287
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.