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.

vHost file auto changed after a period ???
#13
RE: vHost file auto changed after a period ???
Hi TGates,

I checked this issue every 1-2 days after your last post, but now after almost 1 month, it happened again, vHost file is auto written again Sad

After configs of sites written automatically, here are default configs made by sentora auto (I cut all unnecessary lines ...):

Code:
<virtualhost *:80>
ServerName domain1.com
ServerAlias  www.domain1.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/domain1_com"
</virtualhost>

<virtualhost *:80>
ServerName mymaindomain.com
ServerAlias  www.mymaindomain.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mymaindomain_com"
</virtualhost>


it shall add custom configs to the end of file; but really this shall not work, because these settings can not be overwritten?

So finally, my httpd-vhosts.conf after rewritten for unknown reason:
Code:
<virtualhost *:80>
ServerName domain1.com
ServerAlias  www.domain1.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/domain1_com"
</virtualhost>

<virtualhost *:80>
ServerName mymaindomain.com
ServerAlias  www.mymaindomain.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mymaindomain_com"
</virtualhost>

<virtualhost *:80>
ServerName mymaindomain.com
ServerAlias  www.mymaindomain.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mymaindomain_com"
</virtualhost>

<virtualhost *:80>
ServerName mymaindomain.com
ServerAlias  *
</virtualhost>



As you can see, additional settings appended to file, it has 4 lines only and it will not work Sad

Please help me with this

Many thanks
Reply
Thanks given by:


Messages In This Thread
RE: vHost file auto changed after a period ??? - by 7rdoq - 10-01-2016, 05:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
How to set up File Manger for Sentora? donaldaugust 1 3 ,860 01-11-2022, 05:01 AM
Last Post: Nigel
Site Not Updating changes made in The HTML file me7leelee 4 9 ,309 05-20-2020, 06:29 PM
Last Post: 5050
How to give the cliens file manager access to their respective domain directory vsvinit0 4 10 ,543 10-09-2019, 10:05 PM
Last Post: vsvinit0

Forum Jump:


Users browsing this thread: 5 Guest(s)