| |||
|
Hey Folks, I've installed tomcat on my vps and would like my main domain to point to the tomcat server. Currently IIS is serving <www.example.com> directory and tomcat is serving <www.example.com:8080> how can I get Tomcat to host <www.example.com> The website we'll host will use JSP, Servlets and mySql running on tomcat. Any advise on the server setup would be greatly appreciated. J |
| ||||
|
Do you need IIS? This is a very old howto: Tomcat IIS HowTo But there's probably more recent ones if you poke around the tomcat site ...
__________________ Please do not send me PMs for support issues - thanks for your understanding. Blacknight Blog | VPS Hosting| Blacknight Technical Status Blog | Hosting Wiki |Speed Test|Webmaster Chat |Personal Blog |
| |||
|
Hi there, Thanks for your reply. We have our web app developed to run on tomcat so I don't think there's a need for IIS unless it is required by any other VPS services? Should I just uninstall IIS and reconfigure for tomcat? If so can you help point me in the right direction to do so. Cheers |
| |||
|
Ah I didn't realise you had plesk ![]() If you're able to maintain the server yourself, then plesk isn't really needed. You can just change the default IIS port from 80 to 800 or similar. This will allow Tomcat to run on port 80 then. I'd not remove or disable plesk, it's a handy app to have. |
| |||
|
yep, worked perfectly! Thanks for your help, as you may have guessed this is my first stab at getting a Java based website configured for a live server! I did see that there could be some security concerns with using tomcat on port 80. Must mark this down for further investigation. I've one more small issue. <example.com> directs fine but <www.example.com> doesn't I want to use the www as the default and redirect anyother variant to www. I'm trying to set the cName but It's not working, do I need to route this one through support or can I update it myself? |
| |||
|
If you have a look at this knowledgebase article it should help you get the WWW host header set up on the server. Though bear in mind that it's written primarily for IIS, you might need to make some changes for Tomcat to pick up www.domain.tld https://support.blacknight.ie/253/my...domaintld.html |
| |||
|
Hi all, Thanks for all you help so far. regarding the conical changes I restored my DNS settings to default settings last night and selected to include www. which added it to the CNAME record. The change didn't come into effect but I checked this morning and everything is working ok. |