Nginx openat() vhost-error_log

Sometimes you will get below logs in your /var/log/nginx/vhost-error_log file when nginx is configured are reverse proxy in cpanel

[plain]2012/10/10 10:26:48 [crit] xxx#0: *xxxx openat() "/home/user/public_html/file.jpg" failed (13: Permission denied), client: 173.236.114.xxx, server: domain.com, request: "GET /file.jpg HTTP/1.1", host: "www.domain.com"[/plain]

Now it’s due to symlink permission. Open nginx configuration file in my case /etc/nginx/nginx.conf and comment out the below line.
[plain]# disable_symlinks if_not_owner;[/plain]


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


eight + 1 =