Fli
12-05-2014, 04:11 PM
How one can remove zPanel login screen accessible from http://serverIP ?
Insert this code:
# Default entry for any undefined domain or direct IP access, disallows access to default zPanel on http://ServerIP
<VirtualHost *:80>
Redirect 404 /
</VirtualHost>
into file "/etc/zpanel/configs/apache/httpd.conf" before line "Include /etc/zpanel/configs/apache/httpd-vhosts.conf"
then Restart Apache (service httpd restart)
OR
To make zpanel accessible for only your IP via http://serverIP , try using code:
# Default entry for any undefined domain or direct IP access. Access is denied. It also disallows access to zpanel at http://ServerIP to all IPs except mentioned IP
<VirtualHost *:80>
<Location />
Order Deny,Allow
Deny from all
Allow from YOURIPHERE
</Location>
</VirtualHost>
then Restart Apache (service httpd restart)
How to upload your own file accessible via IP
Go to folder /etc/zpanel/panel
copy default index.php file: cp -p index.php index2.php
Now edit index2.php as you wish and access it via web browser YourServerIP/index2.php
Insert this code:
# Default entry for any undefined domain or direct IP access, disallows access to default zPanel on http://ServerIP
<VirtualHost *:80>
Redirect 404 /
</VirtualHost>
into file "/etc/zpanel/configs/apache/httpd.conf" before line "Include /etc/zpanel/configs/apache/httpd-vhosts.conf"
then Restart Apache (service httpd restart)
OR
To make zpanel accessible for only your IP via http://serverIP , try using code:
# Default entry for any undefined domain or direct IP access. Access is denied. It also disallows access to zpanel at http://ServerIP to all IPs except mentioned IP
<VirtualHost *:80>
<Location />
Order Deny,Allow
Deny from all
Allow from YOURIPHERE
</Location>
</VirtualHost>
then Restart Apache (service httpd restart)
How to upload your own file accessible via IP
Go to folder /etc/zpanel/panel
copy default index.php file: cp -p index.php index2.php
Now edit index2.php as you wish and access it via web browser YourServerIP/index2.php