Site shows: 403 forbidden error

Created:

2017-05-19 09:24:29 UTC

Modified:

2017-08-08 13:11:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Site shows: 403 forbidden error

Issue Symptoms

If Smart static files processing is enabled at Subscriptions > example.com > Apache & nginx Settings site example.com shows:

403 forbidden

In /var/www/vhosts/system/example.com/logs/proxy_error_log following error can be found:

2017/05/19 12:53:48 [error] 17428#0: *54295 "/var/www/vhosts/example.com/httpdocs/index.html" is forbidden (13: Permission denied), client: 203.0.113.2, server: example.com, request: "GET / HTTP/1.1", host: "example.com"

Nginx user has below group:

# grep nginx /etc/group
nginx:x:992:nginx

Conditions

"psaserv" group doesn't contain "nginx" user.

Resolution

Add "nginx" user to "psaserv" group:

# usermod -a -G psaserv nginx
# grep psaserv /etc/group
psaserv:x:1002:psaadm,psaftp,apache,nginx
Have more questions? Submit a request
Please sign in to leave a comment.