search

Home  >  Q&A  >  body text

nginx configuration file directory browsing and downloading function

I am using nginx1.10 version. I wrote this configuration by referring to some configuration information on the Internet. nginx -t is correct.
Then nginx -s reload, but when accessing download, it always gets 404. This is Is there something wrong with the configuration?

世界只因有你世界只因有你2751 days ago538

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-16 17:18:20

    Check the errorlog. If the resource cannot be found, there will be a corresponding error. If there is a problem with the configuration, the corresponding line will be printed. Also check your file ownership and modification permissions.

    reply
    0
  • Cancelreply