All Things Techie With Huge, Unstructured, Intuitive Leaps

Domain Name Works but www domain name not resolving

Tomcat again. I wasted a lot of time on this. I went to Godaddy and changed my domain name and the IP address associated with it. After that, I went to my Apache Tomcat server and changed the hostname to mydomain.com.

Then I went back and tried to access the website. It would work. It would work without the www, just the http://mydomain.com but not with http://www.mydomain.com. Couldn't figure it out. I thought it was a Godaddy issue. It wasn't.

In desperation, I went to the Tomcat server.xml and called the host "www.mydomain.com" with an alias. Everything works. Thought that I would pass it along to save you some time.

No comments:

Post a Comment