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.

custom document root
#1
custom document root
Hello friends


i have a question for you...

when i create a new domain, it automatically generates the "vhost configuration": 

<virtualhost *:80>
ServerName mysite.com
ServerAlias  www . mysite.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mysite_com"

i can't modify /etc/sentora/configs/apache/httpd-vhosts.conf  , because this file will be overwritten
so i modify Module Admin -> Apache config -> Vhost:

<virtualhost *:80>
ServerName mysite.com
ServerAlias  www . mysite.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mysite_com/otherfolder/"

But it's not working....
i don't understand why.

help please
thanks!
Reply
Thanks given by:
#2
RE: custom document root
Apache vhosts do not work that way. Your best bet is to use a .htaccess file.although I am not sure why you just don't use the domain root folder? /domain_ com/
-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:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)