ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Installation / System Requirements (http://forum.ispsystem.com//forumdisplay.php?f=10)
-   -   Altering the auto DocumentRoot (http://forum.ispsystem.com//showthread.php?t=1952)

mtudor 08-23-2012 05:30 PM

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.

slava 08-23-2012 07:04 PM

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.

mtudor 08-25-2012 10:16 PM

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.

slava 08-26-2012 02:48 PM

You can modify DocumentRoot in httpd.conf as you want after domain was created, ISPmanager will not restore this value.

11fish 09-07-2012 11:26 AM

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.

slava 09-08-2012 07:05 AM

Hello, you can change DocumentRoot as you need, also you can change path DefaultHomeDir in ispmgr.conf


All times are GMT +2. The time now is 01:12 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.