Content of directory is not accessible if file is on 2nd page

paksociety

Verified User
Joined
Jul 11, 2013
Messages
89
I have a big problem after upgrading CB.
i am seeing these errors......................
2014/06/06 00:19:28 [crit] 8967#0: *1106106 openat() "/home/admin/domains/domain.com/public_html/read/on/2/1.html" failed (13: Permission denied), client: 199.27.128.81, server: domain.com, request: "GET /read/on/2/1.html HTTP/1.1", host: "www.domain.com", referrer: "http://subdomain.com"

please tell me how to resolve issue. these files are not accessible with links in browser.
Its urgent
I found this from searching
Sometimes you will get below logs in your /var/log/nginx/vhost-error_log file when nginx is configured are reverse proxy in cpanel
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"

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

I am seeing the error on user level logs not admin level logs. please tell me what is wrong.


Regards
 
Last edited:
I guess that's permissions issue. Are you running single NGINX or NGINX+Apache? Please try to:

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

and make sure you've go no outdated custom templates in /usr/local/directadmin/data/templates/custom/
 
Solved i edit nginx.conf in etc/nginx/ and put # as directed.



# disable_symlinks if_not_owner;

last time i was editing it in direct admin directory.

Thanks for your ans.

Regards
 
Last edited:
Then you need to update

/usr/local/directadmin/custombuild/configure/nginx/conf/nginx.conf

the same way and copy it to

/usr/local/directadmin/custombuild/custom/nginx/conf/nginx.conf

to keep your changes protected against being overwritten.
 
Back
Top