On other servers when setting up websites for, I've typically setup the folders as follows:
On webfaction, these are scattered, at least the log files are completely separate and it took me a while to find them. I try to put my includes folders elsewhere for security reasons, but this makes it hard to manage because everything gets scattered. It's especially a nuisance when I try to use Git to manage and deploy sites - unless I put everything in the same folder. What does everybody else do here? Just put the includes folders into the document tree and rely on .htaccess directives to keep people out of them? Is there something I missed in the control panel that would let me force the document root to be ~/webapps/app1/docs/ instead of ~/webapps/app1 ? asked 10 Nov '11, 17:05 Arunas |
Yes, believe what you are looking for is exactly the the Symbolic Link to Static/CGI/PHP application. It works exactly like a standard Static/CGI/PHP application except that you can specify the document root as a full path to anywhere in your home directory. This was designed to be used exactly as you are intending. Integrating updates with Git is also compatible with this configuration. More information on using git to manage updates to an application is available here. Hope that helps! answered 10 Nov '11, 18:22 ryans ♦♦ Aha! That looks like it will do it. Thanks!
(11 Nov '11, 13:19)
Arunas
Aha! That looks like it will do the trick! Thanks!
(11 Nov '11, 13:20)
Arunas
The only issue with this solution is that there's no way (currently) to change the symbolic link. So if you want to reorganize your folders, you end up deleting and recreating application entries, and then hooking them up again in your website entry. Otherwise this is exactly the solution that does what I wanted (apart from the log files, which may be solved with a few symbolic links).
(09 Dec '11, 15:13)
Arunas
|