Skip to content

Instantly share code, notes, and snippets.

@nikoskip
Created September 30, 2014 21:46
Show Gist options
  • Save nikoskip/673e955a9cc84ffb517c to your computer and use it in GitHub Desktop.
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 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