.htaccess - Apache 2.2 disable unconfigured subdomains -


there webserver has example.com, www.example.com, my.example.com, shop.example.com, static.example.com. sites except www.example.com on https. problem when type randomstring.example.com -> shop.example.com gets served. want nothing served. example mail.google.com valid subdomain. if type johndoe.google.com see "this webpage not available". how achieve via vhost/.htaccess file.

  1. it's not part of apache. should disallow dns resolving subdomains *.example.com. or
  2. if don't have access dns server - can create virtualhost blank index page , put virtualhost directive on top of virtualhosts. shouldn't same google's behavior (they using 1st way), @ least can protect shop.example.com visiting randomstring.example.com

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -