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
On all Linux systems, this file is located in the folder:
Since Plesk 11.5 location of configuration files and logs is
On FreeBSD systems, this file is located in the directory:
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.