Applicable to:
- Plesk for Linux
Symptoms
-
Apache vhost configuration file for
example.com
domain is empty:for RHEL_based OSes:
/etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf
for Debian-based OSes:
/etc/apache2/plesk.conf.d/vhosts/example.com.conf
-
Website is chosen as a default site for the IP in Tools & Settings > IP Addresses > 203.0.113.2:
Cause
example.com
is set as a default website for the IP address.
After settings the default website /var/www/vhosts/system/example.com/conf/httpd_ip_default.conf
becomes a main configuration file.
Resolution
It is a default behavior and it doesn't require any additional modifications.
Comments
2 comments
Found the website configuration to not load when it is set as default site in IP Address. The site was added to
httpd_ip_default.conf
correctly. But the file was not loaded by Apache in Ubuntu 16.04 for Plesk onyx. Also noticed that there is no include option for /etc/apache2/plesk.conf.d/server.conf in zz010_psa_httpd.conf . server.conf contains the include option for httpd_ip_default.conf .Site works fine when default site is set to None in IP address.
Hello Edwin,
Speaking about Plesk installation running Ubuntu 16 OS, when you set some default website for an IP address, the corresponding configuration file is created in this folder:
The configuration files from this folder are loaded in:
And this server.conf file is loaded in:
Please sign in to leave a comment.