PDA

View Full Version : subdomain with www


IFahad
26th October 2007, 04:31 PM
Hi,

I got domain say
fahad.com under this domain i got subdomain mydomain.fahad.com. If user enter
mydomain.fahad.com then it works fine but I want if the user enter www.mydomain.fahad.com then it should go to mydomain.fahad.com rather then displaying PAGE CAN NOT BE FOUND......

Please let me know if ther any way around.
Thanks

rbo83
26th October 2007, 05:03 PM
Are you trying to do this on your router, your DNS server or your Web server ? Let us know what software and versions you are running.

IFahad
26th October 2007, 05:07 PM
I am trying to do it on my webserver. My webserver is Fedora and using Apache webserver.
Thanks

brunson
26th October 2007, 05:34 PM
You need to make a ServerAlias in your apache config:

<VirtualHost *:80>
ServerAdmin webmaster@brunson.com
DocumentRoot /home/brunson/www/htdocs
ServerAlias www.brunson.com
ServerAlias brunson.com
ServerAlias ipgeeks.net
ServerAlias www.ipgeeks.net

...

</VirtualHost>

Jodiya Bandar Travel Photos on Instagram - Beckingen Travel Photos on Instagram - Guariba Instagram Photos