In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to modify the root directory of nginx site". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to modify the root directory of a nginx site.
one。 Modify nginx configuration file
Command
Vi / usr/local/nginx/conf/nginx.conf
Modify the two places inside
two。 A lot of people modify this and upload files in ftp tools, such as index.html, but show 404 not found.
Now the difference is to modify the permissions of the folder, the access to the folder is not enough, so it is impossible to access it with ip or domain name.
Solution: enter the command to enter the command in the root directory of your site
Chmod aquiw.
Use the ll command at his higher level to see the permissions if
It would be right if it were the same as above. It is best to set all the parent directories of the root directory of the site to this permission. Otherwise, you may have enough permissions in the root directory and insufficient permissions in the superior directory, and you may not be able to access them. Therefore, the root directory of the website had better not be too deep.
At this point, I believe that everyone on "how to modify the nginx site root directory" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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: 0
*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.