How to include domain-specific Apache configuration directives into web server configuration file

Refers to:

  • Plesk for Linux
  • Plesk 12.0 for Windows

Created:

2016-11-16 12:57:57 UTC

Modified:

2017-02-22 12:00:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to include domain-specific Apache configuration directives into web server configuration file

Resolution

Domain-specific Apache configuration directives can be included into web server configuration file. In Plesk, each domain has virtual host configuration information stored in a separate file called 'vho.conf'.

On all Linux systems, this file is located in the folder: /var/www/vhosts/example.com/conf/

Since Plesk 11.5 location of configuration files and logs is /var/www/vhosts/system/example.com/

On FreeBSD systems, this file is located in the directory: /usr/local/www/vhosts/example.com/conf/

If Plesk was upgraded from version 7.5.4 or an earlier version, try looking for one of these files in the directory:

    /home/httpd/vhosts/example.com/conf/` or `/usr/local/psa/home/vhosts/example.com/conf/

Note: the location of virtual host directories can be changed using the transvhosts.pl utility, which is located in either the '/usr/local/psa/bin/' or the '/opt/psa/bin/' directory, depending on the operating system.

To add domain specific setting for Apache and Nginx web servers:

- go to Home > Subscriptions > example.com > Websites & Domains > Apache & nginx Settings 

- add directives for Apache and nginx in Additional Apache directives/Additional nginx directives fields.

After pressing OK button explicit configuration files will be created automatically in /var/www/vhosts/system/example.com/conf directory and related includes will be added to domain's httpd.conf file.

 

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Martin Pfeffer

    "and/or"-creating a file is strictly related to good old Linux. This OS is a mess. It is just a default situation that I wont find the files, which are covered in all the Linux-tuts.

    However, thanks for the write-up. 

    Edited by Martin Pfeffer
  • 0
    Avatar
    Nikolay Zhmuk

    2 Martin

    The article has been updated with actual information.

Please sign in to leave a comment.