.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.
- it's not part of apache. should disallow dns resolving subdomains *.example.com. or
- 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
Post a Comment