- Plesk Onyx for Linux
How to manually set up or customize
vhost.conf on the server?
vhost.conf file is usually created in
/var/www/vhosts/system/example.com/conf/ when additional Apache directives are added for the first time in Domains > example.com > Apache&nginx settings > Additional directives section file will be created.
When clicking OK button at Domains > example.com > Apache&nginx settings, Plesk restarts Apache web-server and runs internal
httpdmng utility that re-configures virtual host configuration file and let Apache know about the additional directives creation.
To manually create
1. Connect to the server via SSH
vhost.conf file and add corresponding directives into it using any text editor:
# vi /var/www/vhosts/system/example.com/conf/vhost.conf
3. Restart Apache:
# service httpd restart
4. Run the following command to apply new configuration:
# plesk sbin httpdmng --reconfigure-domain example.com
vhost.conf is already created manually or through Plesk interface, just restart Apache to apply the changes