all subdomains work except www
I've searched the forums but didn't find anything on this:
My issue is that I have a website: domain.com
In my website i need all subdomains to goto the same place. I have a php file that parses the subdomain out and displays different data. So for example, example1.domain.com, example2.domain.com, example3.domain.com need to point to the same place and the php script will handle displaying the different data.
I've gotten everything to work, except "www.domain.com"
Here's the other catch: i can ping and trace-route the "www.domain.com" and the "domain.com" and everything else and they come back with successful pings and correct IP address for traceroute.
I thought it was my DNS settings at first but since ping and trace-route work i'm not sure. either way, just to put all the information out there, I currently have these settings in my DNS:
Now for my ISPConfig, I run CentOS 5.5 x64 and followed the perfect server guidelines for setting this up from this website. I should state, I am using a VPS from fanaticalvps.com as well. There were some things i wasnt able to do and found workarounds for them, but this was with BIND server, which i currently have turned off due to using zoneedit.com DNS and suPHP(i think). From what i read, this is due to the fact that I was using a vps.
In ISPConfig, I've created the website, the ftp connection for this and that all works, email works, etc. I set the website to use domains for all 3 options for subdomains, "none", "www", "*" - all actually produce the same result: all subdomains work except "www."
Any Help is appriciated. Thanks
Ok so i just made a mistake and accidently deleted the site. (thought i was deleting a subdomain). - I've got everything back up and running and same problem.
This time however, I had to add a dns record:
* A 300 22.214.171.124
Without this the other sub-domains didnt work. Now its back to everything works but www.domain.com
Can you post the Apache vhost configuration of domain.com?
Wow ... I'm an idiot ... I just found the issue:
I forgot that I changed my c:\windows\system32\drivers\etc\hosts File to redirect my www.domain.com to my internal IP because i used to host it from my house and the router couldnt handle the loop back.
Thanks everyone for your help.
|All times are GMT +2. The time now is 06:05.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.