PDA

View Full Version : web root


jcombs_31
22nd May 2009, 22:33
Is it possible to change the web root for a specific website? I assume manually editing the vhost could cause problems with ISPconfig? What is the best practice to do this?

BorderAmigos
22nd May 2009, 22:42
You'd have to modify the vhosts template file used to create the virtual hosts. Then your modifications would get lost on an update.

jcombs_31
22nd May 2009, 23:39
Could it be set as an apache directive under options?

till
23rd May 2009, 09:45
No, the web root can not be set in apache directives. You should stick with the web root that ispconfig creates.

jcombs_31
26th May 2009, 15:10
Thanks for the replies. It isn't really a big deal, but when using a framework it is a little easier to just change the document root rather than changing some routing.

homo
2nd June 2009, 12:53
You can create a symbolic link from the web root you want to the default web root that ispconfig creates :)

ps you have to chown the files/directories under the client/user that ispconfig has created for this client/site.