Plesk change subdomain root

Posted on 2006-05-20
Last Modified: 2008-01-09

I'm trying to change the root directory of a subdomain. With a vhost.conf file I can get it to work on a top level domain just not with a subdomain.

With a top level domain I create a vhost.conf file like this...

# start vhost.conf
DocumentRoot /home/httpd/vhosts/
<Directory /home/httpd/vhosts/>
php_admin_value safe_mode 0
php_admin_value open_basedir
# options
Options Indexes ExecCGI FollowSymLinks MultiViews
AddHandler cgi-script .cgi
# .htaccess so cake's urls work properly
AllowOverride all
Order allow,deny
Allow from all
# end vhost.conf

and then % /usr/local/psa/admin/sbin/websrvmng -u

to apply the changes. I tried making a vhost.conf in my subdomain's conf directory but that doesn't seem to do anything.


Question by:vixiom
    1 Comment
    LVL 10

    Accepted Solution

    Not so sure about Plesk, but this documentation suggests there is a script you need to run so that the new vhost.conf gets detected and added as an include for the main httpd.conf.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    This video discusses moving either the default database or any database to a new volume.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now