08-23-2012, 05:30 PM | #1 |
Junior Member
Join Date: Aug 2012
Posts: 5
|
Altering the auto DocumentRoot
Hi all,
I'm trying to achieve something with ISPManager and I wonder if any of you could help. By default, ISPManager sets a DocumentRoot of ~/www/domain.com/. I can override this for every domain I create, but I'd prefer to be able to alter the default, such that the DocumentRoot is set to ~/www/domain.com/public/. That way, it's much easier when I have a user account with multiple domains to have a structure like: ~/www/domain.com -> /public/ -> /application/ -> /data/ ...and so on, whilst keeping the public directory as the only publicly accessible location. Any way to achieve this and change the default auto DocumentRoot? Thanks, Mark. |
08-23-2012, 07:04 PM | #2 |
ISPsystem team
Join Date: May 2008
Location: ISPsystem
Posts: 588
|
Hello, standard tools to change the way you want is not possible, but if you're using Ruby-on-rails (enabled this in the Applications menu and www domain properties), then wwwroot will be automatically use a 'public' subdirectory.
|
08-25-2012, 10:16 PM | #3 |
Junior Member
Join Date: Aug 2012
Posts: 5
|
Hiya,
Thanks for the response. It's a shame that this isn't possible - it would be nice flexibility to have. So, my next (related) question! I can go into httpd.conf and change the DocumentRoot manually, but ISPManager is remembering the old value somewhere and resetting it when I perform any action that updates httpd.conf. I know this value can be set if you do it at domain creation time, but how can I alter it if this was not done? It must be set somewhere, but I can't for the life of me find out where! Many thanks, Mark. |
09-07-2012, 11:26 AM | #5 |
Junior Member
Join Date: Sep 2012
Posts: 3
|
change the auto documentroot for websites
Hi,
I have used ispmgr to create my websites, but it shows that the auto Root folder is "/var/www/user_name/data/www/domain_name.com". But i want to change the root folder to /home/* . I have tried to modify DocumentRoot in httpd.conf after builting webs by ispmgr. But there's something wrong with my webs. Once i have changed the root folder,the webs are missing in the ispmgr. Could any one help me? Thanks. |
09-08-2012, 07:05 AM | #6 |
ISPsystem team
Join Date: May 2008
Location: ISPsystem
Posts: 588
|
Hello, you can change DocumentRoot as you need, also you can change path DefaultHomeDir in ispmgr.conf
|
|
|