• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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