- Plesk Onyx for Linux
How to manually set up or customize
vhost.conf on Plesk server?
Note: replace example.com with actual domain name in the file path.
1. Connect to Plesk server via SSH
2. Create or open
vhost.conf file and add necessary directives into it using any text editor:
# vi /var/www/vhosts/system/example.com/conf/vhost.conf
3. Restart Apache:
# service httpd restart || service apache2 restart
4. Apply new configuration:
# plesk repair web example.com
vhost.conf file is automatically created in
/var/www/vhosts/system/example.com/conf/ when additional Apache directives are added for the first time to Domains > example.com > Apache & nginx settings > Additional directives section.
When clicking OK button at Domains > example.com > Apache&nginx settings, Plesk runs internal
httpdmng utility that re-configures virtual host configuration and restarts Apache web-server.