Home  >  Q&A  >  body text

web - Why can't nginx access web files even after uploading them?

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!

滿天的星座滿天的星座2712 days ago394

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理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/

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 17:26:27

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

    reply
    0
  • Cancelreply