Sunday, April 18, 2010

How to reload the vhost.conf and vhost_ssl.conf files

I have several websites that I administer on Mediatemple and the following comes in handy.

Create the vhost.conf file in /var/www/vhosts/mt-example.com/conf.

Save the file and run this command to force Plesk to see the changes:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mt-example.com

Restart Apache to load the new changes:

service httpd graceful

To reconfigure server

/usr/local/psa/admin/sbin/websrvmng -a -v

No comments: