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 ???
#20
RE: vHost file auto changed after a period ???
THERE IS NO BASH SCRIPT to rewrite it! You are not entering it in properly!

Admin>Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry:
Code:
ServerAlias  *
You are either not putting it into the correct section or there is something totally messed up with your install.

REMOVE any custom vhost entries you may have and start fresh!
It should look exactly like this: (Added at the bottom before the closing </virtualhost>)
Code:
# DOMAIN: pizza.com
<virtualhost *:80>
ServerName pizza.com
ServerAlias  www.pizza.com
ServerAdmin pizza@pizza.com
DocumentRoot "/var/sentora/hostdata/pizza/public_html/pizza_com"
php_admin_value open_basedir "/var/sentora/hostdata/pizza/public_html/pizza_com:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ErrorLog "/var/sentora/logs/domains/pizza/pizza.com-error.log"
CustomLog "/var/sentora/logs/domains/pizza/pizza.com-access.log" combined
CustomLog "/var/sentora/logs/domains/pizza/pizza.com-bandwidth.log" common
<Directory "/var/sentora/hostdata/pizza/public_html/pizza_com">
  Options +FollowSymLinks -Indexes
  AllowOverride All
  Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 510 /_errorpages/510.html
DirectoryIndex index.php index.html index.htm index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)
ServerAlias  *
</virtualhost>
# END DOMAIN: pizza.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: 7rdoq


Messages In This Thread
RE: vHost file auto changed after a period ??? - by TGates - 10-08-2016, 07:30 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: 16 Guest(s)