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

Created:

2016-11-16 12:57:57 UTC

Modified:

2017-08-16 17:06:49 UTC

1

Was this article helpful?


Have more questions?

Submit a request

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

Applicable to:

  • Plesk for Linux

Question

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

Answer

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 'vhost.conf '.

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

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.

adddir.png

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.