Skip to content
WJunction - Webmaster Forum

Disable wildcards in apache 2

Status
Not open for further replies.
Hi, i have a little trouble whis my ISP wildcarded DNS. How can i disable in apache wildcard? I cant change DNS servers and i dont have any DNS server in my box, if there are any way to disable this function globally from apache?
 

4 comments

What does your vHosts look like in httpd.conf? Do they look something like what I have posted below? And by Wildcard, are we talking sub-domains here?

Code:
<VirtualHost *>
        ServerName  [URL="http://www.example.com/"]www.example.com[/URL]
     [B]ServerAlias example.com
[/B]
        DirectoryIndex index.html 
        DocumentRoot /home/www/[URL="http://www.example.com/htdocs"]www.example.com/htdocs[/URL]

    ....
</VirtualHost>
 
Ok i have domain: domain.com and subdomain forum.domain.com
I disabled forum and past 1 month i realized that google indexed forum.forum.forum.forum.forum.forum.forum..domain.com (wtf?).

When i type whatever.domain.com i dont get 404 but my domain.com content...

Vhost entry looks like this:
<VirtualHost *>
ServerName domain.com
DirectoryIndex index.html
DocumentRoot /home/www/domain.com

....
</VirtualHost>
 
Status
Not open for further replies.

About the author

K
Active Member · Joined
479
Messages
9
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom