Today, we are doing a Nginx share a directory server disk.
The difference is increased by two parameters
server { listen xxx; server_name down.cdbaidu.com; location / { root /Downloads/Dokcers/b1/downloads; ON autoindex; # <---- culprit, adding this will no longer be 403 errors #index index.php index.html; # auth auth_basic " Please the INPUT B1 password " ; # Set the encryption login prompt auth_basic_user_file / etc / nginx / xxx / . Htpasswd; # set encrypted account password file } # log access_log /Downloads/Dokcers/b1/web/access.log; error_log /Downloads/Dokcers/b1/web/error.log info ; # open this pattern has attention troubleshooting # IP access the allow 192.168 . x.0 / 22 ; # IP segment limit landing deny all; }
In addition to the above, there are 403 errors. Need troubleshooting ideas
1. selinux
2. Under directory has no index.html file (if there is need to have a complete index index.html)
3. The rights issue