Sentora Support Forums
Document root - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Document root (/showthread.php?tid=1495)



Document root - cygus - 04-20-2015

Hi,

Is it possible to change document root for one domain?
I would like to keep ftp path but http document root must be changed to one level below.

I can change this by editing httpd-vhosts.conf but what about zdaemon and possibility to overwrite config file?

BR


RE: Document root - TGates - 04-21-2015

One level below? Yes. When you create the domain select 'Use existing home directory' and select /(root).
This will have the domain point to /var/sentora/hostdata/[username]/public_html/
Or are you trying to do something else?


RE: Document root - cygus - 04-23-2015

(04-21-2015, 02:15 AM)TGates Wrote: One level below? Yes. When you create the domain select 'Use existing home directory' and select /(root).
This will have the domain point to /var/sentora/hostdata/[username]/public_html/
Or are you trying to do something else?


For example I have domain path:

/var/sentora/hostdata/[username]/public_html/[domain_name]/

and I would set apache document root to:

/var/sentora/hostdata/[username]/public_html/[domain_name]/www/

How can I do this?

BR


RE: Document root - Me.B - 04-23-2015

I think you can do that create the folder www.

Then delete your domain.

Recreate it using existing home and use www .

This would be fine no?

M B


RE: Document root - cygus - 04-26-2015

(04-23-2015, 11:51 PM)Me.B Wrote: I think you can do that create the folder www.

Then delete your domain.

Recreate it using existing home and use www .

This would be fine no?

M B

ok, but what about open base dir?
I would like to have open base dir to: /var/sentora/hostdata/[username]/public_html/[domain_name]/


BR


RE: Document root - Me.B - 04-26-2015

try it and you will see. openbase_dir will always include domain root.

M B


RE: Document root - cygus - 04-27-2015

uhm and that's problem because I have application which has part of files in (FTP Root):
/var/sentora/hostdata/[username]/public_html/[domain_name]/
and part of files in (Document Root):
/var/sentora/hostdata/[username]/public_html/[domain_name]/www

so what should I do in this case?

BR


RE: Document root - Me.B - 04-27-2015

It's unlike cpanel and openbase_dir is only set to domain not to USER Root.

This is how it works currently.

M B


RE: Document root - cygus - 04-28-2015

(04-27-2015, 08:58 PM)Me.B Wrote: It's unline cpanel and openbase_dir is only set to domain not to USER Root.

This is how it works currently.

M B

thx for info