• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

vhosts.conf ignored for subdomains

R

r.meister

Guest
Hello, I'm trying to override the php_admin_value open_basedir value for a subdomain but it seams Plesk isn't picking it up in the httpd.include file for the domain.

I created a vhost.conf file in the following path: /home/vhosts/domain.com/conf/subdomains/subdomainname/conf where I placed the override in various ways:

<Directory /home/vhosts/domain.com/subdomains/subdomainname/httpdocs>
php_admin_value open_basedir none
</Directory>

After which I executed the command:
/usr/local/psa/admin/sbin/websrvmng -v -a

I also tried different other notations but no luck.

This thing is working great for the master domain, but somehow It's not working for subdomains.

Does anybody have any idea?
 
Include /var/www/vhosts/(domain)/subdomains/(subdomain)/conf/vhost.conf not included

Hello

I am having the same problem as r.meister.

I looked in the httpd.include file, and while the VirtualHost definition for the main domain contains the line

Include /var/www/vhosts/wearewhatwedo.org/conf/vhost.conf

the VirtualHost definition for the subdomain does NOT contain the equivalent

Include /var/www/vhosts/(domain)/subdomains/(subdomain)/conf/vhost.conf

so anything I put in vhost.conf for the subdomain is ignored.

Am I getting it all wrong?

Thanks
Helena
 
same problem

Same problem here with plesk 8.3.0

http.include should not be edited, but it must be edited to get the subdomains vhost.conf configuration running.


Additionally, the settings are sometimes "forgotten" by apache, and I have random erroneous behaviour during a day. Sometimes the subdomains configurations are partly known, sometimes they are not.
 
Hello

I am having the same problem as r.meister.

I looked in the httpd.include file, and while the VirtualHost definition for the main domain contains the line

Include /var/www/vhosts/wearewhatwedo.org/conf/vhost.conf

the VirtualHost definition for the subdomain does NOT contain the equivalent

Include /var/www/vhosts/(domain)/subdomains/(subdomain)/conf/vhost.conf

so anything I put in vhost.conf for the subdomain is ignored.

Am I getting it all wrong?

Thanks
Helena

Plesk generates Include /var/www/vhosts/(domain)/subdomains/(subdomain)/conf/vhost.conf directive only if /var/www/vhosts/(domain)/subdomains/(subdomain)/conf/vhost.conf file exists.
so you need to create vhost.conf file and after that run /usr/local/psa/admin/sbin/websrvmng -a -v utility as user root to generate webserver configs with Include directive.
 
Back
Top