I am just wondering something. I parked a domain called curbdiver.net ontop of curbdiver.com in WHM. I also installed JSP servlets on curbdiver.com. But when you go to www.curbdiver.com it displays fine, but www.curbdiver.net, and the IP for the site, gives tomcat 404 errors. Can anyone help PLEASE? Thanks!
Ok. Thanks for the replys! I don't really see how there would be any difference between the .net and the .com entry in httpd.conf. Especially since .net is just an alias right? Here is the virtualhost entry in my httpd.conf
Ok... I've figured it out myself finally. Took a bit. But I got it. Anyone that may be reading this thread, and want to know how I did this, well, listen up..
Ok. It's pretty simple. All you need to do is navigate to the directory below (may be different if you have a different version of tomcat installed)
Once there, open up your server.xml file, and get ready to edit some lines.. They are near the bottom of the file. They look like
<Context path="" reloadable="true" docBase="/home/curbdive/public_html" debug="1"/>
Well, I needed it to work with curbdiver.net and www.curbdiver.net - so I added the following:
Restart tomcat, restart httpd - ta da. Your parked domains now work. I was over on the cpanel forums. And people seemed to have the similiar problem. May be a bug in whm/cpanel when a domain is parked, it isnt added to the tomcat server.xml file. I'm going to post the info to that board also..