Subdomain question

dreamline

Verified User
Joined
Dec 3, 2005
Messages
108
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
 
Last edited:
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
 
Subdomain creation for every user

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: [email protected]
 
Back
Top