1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

vhosts.conf ignored for subdomains

Discussion in 'Plesk for Linux - 8.x and Older' started by r.meister, Dec 12, 2007.

  1. r.meister

    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

    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?
  2. Hedgren

    Hedgren Guest

  3. ladelentes

    ladelentes Guest

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


    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?

  4. user314

    user314 Guest

    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.
  5. dash

    dash Regular Pleskian Staff Member

    Sep 26, 2007
    Likes Received:
    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.