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!
大家讲道理2017-05-16 17:26:27
Because the web directory is not necessarily usr/local/nginx/html=. =The default may be something like this in /usr/share/nginx/html/
PHP中文网2017-05-16 17:26:27
Write a configuration file... Generally, you create a new .conf configuration file and write the configuration yourself