PDA

View Full Version : Subdomain question


dreamline
02-22-2007, 02:23 AM
Hi All,
I'm running into a bit of a problem. I created a subdomain called: test.domain.com and it's located in the main folder of the domain (no problem there). Now what I wanna do is point all US states like (NY, OH etc.) to that subdomain, so I edited the httpd.conf file and added test.ny.domain.com and test.oh.domain.com as server aliases.

For the US there are like 50 states so I added them all to the httpd.conf file and guess what in some cases it's working but in most cases is not working.

Anyone had a similar problem with this? The weird thing is that a number of additions are working but that the majority is not.

Anyways thanks for any help on this problem.. :D

dreamline
02-23-2007, 07:27 PM
Hi all,
I've solved the problem. An 'A' record of test.*.domain.com doesn't seem to work. So i've set it to *.domain.com and that works just fine.... :D

jlasman
02-24-2007, 08:58 AM
BIND isn't recursive as bash is :) .

Jeff

suresh678
03-26-2007, 05:48 AM
Respected Sir ,

How to create subdomain creation for every user. I see the forum answers but i can't understand. I follow that links but that was not working. I tried that steps in localhost but that was not working. It's working only in main server or working in localhost. I follow the below link http://www.directadmin.com/forum/showthread.php?t=17660.
I am presently working with apache server(Wamp) in PHP. I write the subdomain details in Config files->httpd-conf . i.e

Ex:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.mahalife.com(This is my site name)
ServerAlias *.mahalife.com
DocumentRoot /www/mahalife
</VirtualHost>

I am writing the above details in conf file .But that above code not created the subdomains for every user. So how to create subdomains EX:www.suresh.mahalife.com)
for every user.So please solve my problem with detailed.So please tell me the steps about that problem. So please help me.

Thanks & Regards,
Suresh...
Email id: suresh678@gmail.com