Document root
#1
Document root
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
Reply
#2
RE: Document root
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?
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: Document root
(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
Reply
#4
RE: Document root
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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#5
RE: Document root
(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
Reply
#6
RE: Document root
try it and you will see. openbase_dir will always include domain root.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#7
RE: Document root
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
Reply
#8
RE: Document root
It's unlike cpanel and openbase_dir is only set to domain not to USER Root.

This is how it works currently.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#9
RE: Document root
(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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
root limits sentora thanhlan2103 0 3 ,762 11-02-2018, 06:11 PM
Last Post: thanhlan2103
sentora root limits mohamadcom 4 12 ,739 01-25-2018, 08:21 AM
Last Post: TGates
ROOT Login CMs222 6 16 ,713 01-25-2018, 07:50 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)