Once you installed zpanel, it runs in port 80 by default if you didn’t installed it in sub-domain. This will point your domain to zpanel instead of your application. If you want zpanel and your application co-exist in the same domain without installing zpanel in sub-domain again, then one way around is running the zpanel in port other than 80.
The following configuration is needed in order to enable zpanel in port other than 80. The configuration could be added to httpd.conf file in /etc/httpd/conf/
# Ensure that Apache listens on port 10001 Listen 10001 # Listen for virtual host requests on all IP addresses NameVirtualHost *:10001 <VirtualHost *:10001> DocumentRoot /etc/zpanel/panel ServerName www.mysite.com # Other directives here </VirtualHost>
This configuration is useful not only to allow zpanel to run in port mentioned but using this configuration we can host different application in different port.