US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Installation / System Requirements


Reply
 
Thread Tools
Old 08-23-2012, 05:30 PM   #1
Junior Member
 
Join Date: Aug 2012
Posts: 5
mtudor is on a distinguished road
Default 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.
mtudor is offline   Reply With Quote
Old 08-23-2012, 07:04 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

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.
slava is offline   Reply With Quote
Old 08-25-2012, 10:16 PM   #3
Junior Member
 
Join Date: Aug 2012
Posts: 5
mtudor is on a distinguished road
Default

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.
mtudor is offline   Reply With Quote
Old 08-26-2012, 02:48 PM   #4
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

You can modify DocumentRoot in httpd.conf as you want after domain was created, ISPmanager will not restore this value.
slava is offline   Reply With Quote
Old 09-07-2012, 11:26 AM   #5
Junior Member
 
Join Date: Sep 2012
Posts: 3
11fish is on a distinguished road
Default 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.
11fish is offline   Reply With Quote
Old 09-08-2012, 07:05 AM   #6
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

Hello, you can change DocumentRoot as you need, also you can change path DefaultHomeDir in ispmgr.conf
slava is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:43 PM.