• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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