web - Why can't nginx access web files even after uploading them?
滿天的星座
滿天的星座 2017-05-16 17:24:27
0
2
393

rt, after nginx is installed on the server centos x64, enter my server IP in the browser, and you can see the nginx prompt page showing that I successfully installed nginx. After that, I uploaded all the webpage files to /usr/local/nginx-1.8.0/html and replaced the built-in index.html, but I cannot access my new webpage files. Why?
It says this page cannot be accessed.
But is there anything that needs to be configured? Newbies don’t understand, please teach me!

滿天的星座
滿天的星座

reply all(2)
大家讲道理

Because the web directory is not necessarily usr/local/nginx/html=. =The default may be something like this in /usr/share/nginx/html/

洪涛

Write a configuration file... Generally, you create a new .conf configuration file and write the configuration yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!