Subdomains and additional domains are forbidden with SELinux support enabled

Refers to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:07:45 UTC

Modified:

2016-12-21 20:00:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Subdomains and additional domains are forbidden with SELinux support enabled

Symptoms

After changing the default directory to store website content (e.g. "/home/vhosts"), it is not possible to access the content of subdomains and additional websites over the Web.

Cause

This problem occurs if SELinux works in " Enforcement " mode. In this mode, webroot directories for websites and subdomains inside them have different permissions, and your web server fails to access them.

Resolution

Change SELinux context using the following commands:

# semanage fcontext -a -t httpd_sys_content_t "/home/vhosts(/.*)?" 
# restorecon -R -v /home/vhosts

Reboot the server.

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