This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#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
Thanks given by:
#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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#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
Thanks given by:
#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
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#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
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
root limits sentora thanhlan2103 0 2 ,968 11-02-2018, 06:11 PM
Last Post: thanhlan2103
sentora root limits mohamadcom 4 9 ,747 01-25-2018, 08:21 AM
Last Post: TGates
ROOT Login CMs222 6 11 ,920 01-25-2018, 07:50 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)