Created
September 30, 2014 21:46
-
-
Save nikoskip/673e955a9cc84ffb517c to your computer and use it in GitHub Desktop.
Block the zPanel login page for all undefined subdomain or direct IP access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This on file: /etc/zpanel/configs/apache/httpd.conf before "Include /etc/zpanel/configs/apache/httpd-vhosts.conf" line | |
# Next, restart Apache | |
# Default entry for any undefined domain or direct IP access | |
<VirtualHost *:80> | |
Redirect 404 / | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment