Custom vhost.conf is not included in apache config folder

Created:

2016-11-16 12:48:18 UTC

Modified:

2017-04-24 11:23:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Custom vhost.conf is not included in apache config folder

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Custom Apache configuration file was created vhost.conf (according to Virtual Host Configuration Files article ) in folder:

/var/www/vhosts/system/example.com/conf/vhost.conf

But after domain reconfiguration with command:

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain example.com

it is not possible to find custom config in /etc/httpd/conf/plesk.conf.d/vhosts directory .

Cause

Custom vhost.conf file located in /var/www/vhosts/system/example.com/conf/ directory and added to Apache configuration via Include directive.

Resolution

Custom vhost config /var/www/vhosts/system/example.com/conf/vhost.conf is included in domain config /var/www/vhosts/system/example.com/conf/httpd.conf :

# cat /var/www/vhosts/system/example.com/conf/httpd.conf | grep Include
Options -Includes +ExecCGI
Options -Includes +ExecCGI
Include "/var/www/vhosts/system/example.com/conf/vhost.conf"

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Martin Pfeffer

    cat /var/www/vhosts/system/domain.tld/conf/last_httpd.conf | grep Include
    Options -Includes +ExecCGI
    Options -Includes +ExecCGI
    Include "/var/www/vhosts/system/domain.tld/conf/vhost.conf"

     

    ?

  • 0
    Avatar
    Nikolay Zhmuk

    2 Martin

    This output shows that vhost.conf file with additional directives for Apache for domain is added via Include and located in /var/www/vhosts/system/domain.tld/conf/ directory.

Please sign in to leave a comment.