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:
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>)
Admin>Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry:
Code:
ServerAlias *
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
################################################################