• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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