nginx giving a 403 error accompanied by error #1082 in logs
My site at domain xtcl.it has been turning up 403 forbidden errors. I have already used chmod to ensure that the directory permissions are allowing nginx to access the files, and confirmed there are no IP's blocked directly in the configuration file of nginx. I also have several other websites running on this server that are functioning correctly over nginx.
After looking further into the nginx error logs, I can see errors present for the xtcl domain with code #1082. Can anybody help me?
3 Replies
Hi there,
It would be helpful if you could provide the log output here directly so that people can get a better picture. After searching for some time for #1082 errors with nginx, I wasn't able to find much of anything useful. This thread comes up but they are having issues with docker, which it doesn't sound like you are using.
In addition to posting the log files, I'd recommend enabling debug mode. You can find steps on how to do this here. Debug mode is step 8, it sounds like you've already exhausted the suggestions in earlier steps but it can't hurt to read back through them. Double checking your DNS records are configured properly as suggested in step of that guide is a good idea as well.
It may also be useful to retrace your steps with our nginx Configurtion Guide to ensure that the configuration files are all fully set up correctly.
Now i get this error in the log file .. no the #1082 but the 4375
[error] 4375*4375: *100 directory index of "/home/xtcl/ftp" is forbidden, ciente: 172.68.189.227, server: xtcl.it, request "GET / HTTP/1.1", host: "www.xtcl.it"
The access rights for /home/xtcl/ftp are not configured properly in your web server…or the file system permissions are wrong. Cloudflare (172.68.189.227) is trying to get a directory index and can't.
I don't know if you use Cloudflare or not (as either a proxy or CDN) but, if you don't, this is probably what you want.
-- sw