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.

Adding a domain causes disabling others in vhosts file
#3
RE: Adding a domain causes disabling others in vhosts file
When i edit domains the following changes commit, domains become disabled
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
################################################################
before that everything is ok
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
Reply
Thanks given by:


Messages In This Thread
RE: Adding a domain causes disabling others in vhosts file - by vprocopan - 09-17-2014, 01:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Increase disk space by adding volume only, it is okay? 7rdoq 10 698 11-06-2024, 07:27 AM
Last Post: TGates
How to set up File Manger for Sentora? donaldaugust 1 3 ,860 01-11-2022, 05:01 AM
Last Post: Nigel
Public_html Inside Domain/Subdomain zHostingSolutions 2 5 ,018 07-23-2021, 09:57 AM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 1 Guest(s)