[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Plesk change subdomain root

Posted on 2006-05-20
3
Medium Priority
?
1,745 Views
Last Modified: 2008-01-09
Hi,

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/domain.com/httpdocs/app/webroot/
<Directory /home/httpd/vhosts/domain.com/httpdocs/app/webroot/>
php_admin_value safe_mode 0
php_admin_value open_basedir
"/home/httpd/vhosts/domain.com/httpdocs:/tmp:/usr/share/pear"
# 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
</Directory>
# end vhost.conf

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

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

thanks

0
Comment
Question by:vixiom
1 Comment
 
LVL 10

Accepted Solution

by:
sleep_furiously earned 2000 total points
ID: 16737675
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.

http://download1.sw-soft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-admins-guide-html/apas02.html
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses
Course of the Month18 days, 5 hours left to enroll

830 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