Change default website path

2 posts / 0 new
Last post
#1 Fri, 06/18/2010 - 06:15
grollaz

Change default website path

Hi, how i can change the default path of website server root?

If possible i whant change the root path from: "/home/mywebsite/public_html" to "/var/vhosts/mywebsite.com/httpdocs"

Is it possible?

Thanks.

Fri, 06/18/2010 - 08:21
andreychek

It's kind of tricky to change the DocumentRoot for your web sites. Suexec comes configured to use /home, so using something other than /home typically means either recompiling Apache, or disabling suexec support.

Second, is that to change the dir from public_html to httpdocs, you'd need to go into System Settings -> Server Templates -> Apache Website, and you'll need to update the box labeled "Directives and settings for new websites"... anywhere it mentions "public_html", change it to "httpdocs".

You'd have to experiment from there and see if that works, it may require a little additional tweaking, but that should get you started.

-Eric

Topic locked