• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

www CNAME record problems

M

mysticBoer

Guest
EDIT : Tomcat application issue

Hi,

I have the following problem :

When I type in "www.mydomain.com" OR "mydomain.com" in the address bar, I end up at the same place. However, if I want to go into an application it doesn't react the same.

If I type "http://mydomain.com/appname" it works, but if I type "http://www.mydomain.com/appname" then it displays a message stating that states "Not Found
The requested document was not found on this server. "

I think this has something to do with my DNS settings, but as far as I know it is set up correctly. Any help please!!?
 
Ok, I have determined that this is not a DNS issue.

If I go to either 'http://mydomain.com/htmlfolder/' or 'http://www.mydomain.com/htmlfolder/' I see the page...

However, when I try to do the same thing to a Tomcat application, I can only access it if I DON'T have 'www' in the URL. :confused: :confused:

This is very urgent, so if somebody has a clue as to what is going on here...please please let me know...
 
I don't know whether anybody is interested , but I managed to solve the problem.

I added an <Alias>www.mydomain.com</Alias>
to the host section of the server.xml file in the Tomcat/Conf directory. I restarted Tomcat and voila, it works....

I still want to know why I had to do this in the first place though, so if somebody can point this out to me, I would really appreciate it... :)
 
Back
Top