Disable apache catch-all subdomain
Posted
by Lukas F
on Stack Overflow
See other posts from Stack Overflow
or by Lukas F
Published on 2010-04-27T19:20:38Z
Indexed on
2010/04/27
19:23 UTC
Read the original article
Hit count: 369
Hi,
I have a problem with my apache2 configuration and I hope someone here can help me.
There is one server with one IP and a few domains.
http://123.123.123.123 should have /var/www/123.123.123.123
as DocumentRoot
http://www.domain1.com should have /var/www/domain1.com
as DocumentRoot
http://blog.domain1.com should have /var/www/blog.domain1.com
as DocumentRoot
http://www.domain2.com should have /var/www/domain2.com
as DocumentRoot
and http://bullshit.domain1.com along with all other non-existing subdomains on both domains should return a 404 page.
What am I doing wrong? That can't be so hard, and I'm sure I had it working before...
In my current config all subdomains show the /var/www/123.123.123.123
. I guess because thats the first VirtualHost apache is reading.
© Stack Overflow or respective owner