RE: Adding a domain causes disabling others in vhosts file
09-17-2014, 01:20 PM
(This post was last modified: 09-17-2014, 02:11 PM by vprocopan.)
When i edit domains the following changes commit, domains become disabled
before that everything is ok
Please help me resolve this issue
Code:
################################################################
# Apache VHOST configuration file
# Automatically generated by ZPanel 10.1.1
# Generated on: 18:45 22nd Aug 2014 EEST
################################################################
NameVirtualHost *:80
NameVirtualHost *:443
# Configuration for ZPanel control panel.
<VirtualHost *:80>
ServerAdmin zadmin@localhost
DocumentRoot "/etc/zpanel/panel/"
ServerName panel.webmastermd.net
ServerAlias *.panel.webmastermd.net
AddType application/x-httpd-php .php
<Directory "/etc/zpanel/panel/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Custom settings are loaded below this line (if any exist)
</VirtualHost>
################################################################
# ZPanel generated VHOST configurations below.....
################################################################
# DOMAIN: comfi.md
<virtualhost *:80>
ServerName comfi.md
ServerAlias comfi.md www.comfi.md
ServerAdmin zadmin@localhost
DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/comfi_md"
php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/comfi_md:/var/zpanel/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/zpanel/logs/domains/zadmin/comfi.md-error.log"
CustomLog "/var/zpanel/logs/domains/zadmin/comfi.md-access.log" combined
CustomLog "/var/zpanel/logs/domains/zadmin/comfi.md-bandwidth.log" common
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
ScriptAlias /cgi-bin/ "/_cgi-bin/"
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)
# Custom VH settings (if any exist)
</virtualhost>
# END DOMAIN: comfi.md
################################################################
# DOMAIN: amoresparaiso.com
# THIS DOMAIN HAS BEEN DISABLED
<virtualhost *:443>
ServerName amoresparaiso.com
ServerAlias amoresparaiso.com www.amoresparaiso.com
ServerAdmin zadmin@localhost
DocumentRoot "/etc/zpanel/panel/etc/static/disabled"
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>
# END DOMAIN: amoresparaiso.com
################################################################
Code:
################################################################
# Apache VHOST configuration file
# Automatically generated by ZPanel 10.1.1
# Generated on: 00:05 1st Aug 2014 EEST
################################################################
NameVirtualHost *:80
NameVirtualHost *:443
# Configuration for ZPanel control panel.
<VirtualHost *:80>
ServerAdmin zadmin@localhost
DocumentRoot "/etc/zpanel/panel/"
ServerName panel.webmastermd.net
ServerAlias *.panel.webmastermd.net
AddType application/x-httpd-php .php
<Directory "/etc/zpanel/panel/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Custom settings are loaded below this line (if any exist)
</VirtualHost>
################################################################
# ZPanel generated VHOST configurations below.....
################################################################
# DOMAIN: comfi.md
<virtualhost *:80>
ServerName comfi.md
ServerAlias comfi.md www.comfi.md
ServerAdmin zadmin@localhost
DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/comfi_md"
php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/comfi_md:/var/zpanel/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/zpanel/logs/domains/zadmin/comfi.md-error.log"
CustomLog "/var/zpanel/logs/domains/zadmin/comfi.md-access.log" combined
CustomLog "/var/zpanel/logs/domains/zadmin/comfi.md-bandwidth.log" common
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
ScriptAlias /cgi-bin/ "/_cgi-bin/"
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)
# Custom VH settings (if any exist)
</virtualhost>
# END DOMAIN: comfi.md
################################################################
# DOMAIN: amoresparaiso.com
<virtualhost *:80>
ServerName amoresparaiso.com
ServerAlias amoresparaiso.com www.amoresparaiso.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/amoresparaiso_com"
php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/amoresparaiso_com:/var/zpanel/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/zpanel/logs/domains/zadmin/amoresparaiso.com-error.log"
CustomLog "/var/zpanel/logs/domains/zadmin/amoresparaiso.com-access.log" combined
CustomLog "/var/zpanel/logs/domains/zadmin/amoresparaiso.com-bandwidth.log" common
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
ScriptAlias /cgi-bin/ "/_cgi-bin/"
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
Redirect Permanent / https://amoresparaiso.com/
# Custom Global Settings (if any exist)
# Custom VH settings (if any exist)
</virtualhost>
<virtualhost *:443>
ServerName amoresparaiso.com:443
ServerAlias amoresparaiso.com www.amoresparaiso.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/amoresparaiso_com"
php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/amoresparaiso_com:/var/zpanel/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open$
ErrorLog "/var/zpanel/logs/domains/zadmin/amoresparaiso.com-error.log"
CustomLog "/var/zpanel/logs/domains/zadmin/amoresparaiso.com-access.log" combined
CustomLog "/var/zpanel/logs/domains/zadmin/amoresparaiso.com-bandwidth.log" common
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
ScriptAlias /cgi-bin/ "/_cgi-bin/"
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 404 /_errorpages/404.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
SSLEngine on
SSLOptions +StrictRequire
SSLCertificateFile /etc/ssl/certs/amoresparaiso.crt
SSLCertificateKeyFile /etc/ssl/certs/private.key
SSLCertificateChainFile /etc/ssl/certs/certificate-CA.cer
</virtualhost>
# END DOMAIN: amoresparaiso.com
################################################################
# DOMAIN: webmaster.vika
<virtualhost *:80>
ServerName webmaster.vika
ServerAlias webmaster.vika www.webmaster.vika
ServerAdmin zadmin@localhost
DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/webmaster_vika"
php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/webmaster_vika:/var/zpanel/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/zpanel/logs/domains/zadmin/webmaster.vika-error.log"
CustomLog "/var/zpanel/logs/domains/zadmin/webmaster.vika-access.log" combined
CustomLog "/var/zpanel/logs/domains/zadmin/webmaster.vika-bandwidth.log" common
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
ScriptAlias /cgi-bin/ "/_cgi-bin/"
Please help me resolve this issue