RE: vHost file auto changed after a period ???
10-01-2016, 05:54 PM
(This post was last modified: 10-01-2016, 05:56 PM by 7rdoq.)
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
After configs of sites written automatically, here are default configs made by sentora auto (I cut all unnecessary lines ...):
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:
As you can see, additional settings appended to file, it has 4 lines only and it will not work
Please help me with this
Many thanks
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
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
Please help me with this
Many thanks