Configuring Plesk to recognize vhost.conf

I always seem to forget this. So here’s to remembering. As usual, you create a vhost.conf file in the conf folder of your domain dir. Here’s what mine looks like.


DocumentRoot /var/www/vhosts/niagaraschool.com/httpdocs/wordpress
<Directory /var/www/vhosts/niagaraschool.com/httpdocs/wordpress>
        Order allow,deny
        Allow from all
        AllowOverride all
        Options +Indexes
        Options +FollowSymLinks
</Directory>

Telling Plesk to recognize the new vhost.conf file

This is the part I always forget.
Initializes vhost.conf for one specific domain

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com

or

Initialize all vhost.conf files for all domains.

/usr/local/psa/admin/bin/websrvmng -a

More help

Aaron Gadberry has a great tutorial including some great comments explaining more complex scenarios such as symlinks. Check it out: http://www.gadberry.com/aaron/2006/02/09/plesk_vhost/


Posted

in

, , ,

by

Comments

One response to “Configuring Plesk to recognize vhost.conf”

  1. […] regular vhost.conf file and getting Plesk to recognize this file once created. Read more about that here. Recently I ran into a similar issue with vhost_ssl.conf. This file tells Plesk where to look […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.