Unable to access all the pages except .php with enabled Nginx: 403 Forbidden

Created:

2016-12-18 06:52:42 UTC

Modified:

2017-08-14 22:35:33 UTC

6

Was this article helpful?


Have more questions?

Submit a request

Unable to access all the pages except .php with enabled Nginx: 403 Forbidden

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

Unable to access website pages based on HTML or images. The following error is shown:

403 Forbidden

The option Restrict the ability to follow symbolic links is enabled in domain settings at Plesk > Domains > example.com > Apache & Nginx settings

Cause

nginx is unable to access files with default permissions if the option Restrict the ability to follow symbolic links is enabled.

Plesk bug with ID #PPPM-5348 . The fix is considered to be included in one of the future Plesk updates.

Resolution

Solution 1:

Disable the option Restrict the ability to follow symbolic links at Plesk > Domains > example.com > Apache & Nginx settings

Solution 2:

Enable the option Serve static files directly by nginx at Plesk > Domains > example.com > Apache & Nginx settings

Solution 3:

Add disable_symlinks if_not_owner from=<path_to_docroot> directive to the Additional nginx directives field at Plesk > Domains > example.com > Apache & Nginx settings

Note: This solution is vital when it is required to enable nginx static files caching and to increase security by enabling a directive 'disable_symlinks' which contradict each other at the moment because of the bug.

Have more questions? Submit a request
Please sign in to leave a comment.