views:

533

answers:

2

I just don't get it..

I'm planning to get scenario like this: username.mydomain.com = mydomain.com/user.php?user=username

Well, let's not go that far yet because this wildcard DNS is making me insane!! :/

I have DNS record

* A my-ip-address

And I have in my vhost file

ServerAlias *.mydomain.com

But it just doesn't work at all.. No wait, example test.mydomain.com is working but not any random subdomain.. Wut?

When I ping any subdomain it find my ip like it should be. Can anyone help me?

Okey and then this other issue. When (and if) I'll get this virtual subdomain working, what would be best sollution to make it work like I explained above?

username.mydomain.com equals to mydomain.com/user.php?user=username

but user can see it just like it would be subdomain... Little lost here, sry! :)

Thanks for all help!

A: 

i just realized it .... i always use..

  • CNAME abc.com.

http://www.decodephp.com/2006/10/12/virtual-subdomains-and-php/

Sabeen Malik
thats not a bullet its "* CNAME abc.com."
Sabeen Malik
Okey, I changed to CNAME and tested ping via network-tools.com. It pings for every single random subdomain but when I try to access whit browser: Problem loading page, server not found.. I don't know if these help but I'm in VPS, served by slicehost and I use cPanel VPS optimized.. Something is cleary blocking access there??
Marko
no i dont think so .. just restart ur bind and then also can u post the vhost entry from httpd.conf here ... just to make sure? also make sure whenever ur testing with a random string .. make sure its unique everytime .. cause ur local os will cache the lookup results from previous lookups.
Sabeen Malik
A: 

Okey I don't know what just happend but I get really mad about this situation, nuked my VPS and re-install whole system... and now it is working.. :)

Anyways, thanks Sab!

Marko