[quote:30944e54c5][i:30944e54c5]Originally posted by dgbaker[/i:30944e54c5]
[quote:30944e54c5][i:30944e54c5]Originally posted by juzthost[/i:30944e54c5]
but i cant get JSP work from www, you may try and see...
http://207.44.162.164/~fengshui/[/quote:30944e54c5]
You cannot use jsp's by using ip address. Jsp's will only work from the FQDN that is assigned servlet/jsp support.
http:207.44.162.164/~domain will not work but http://domain.com should work fine.
[/quote:30944e54c5]
Well i wouldn't agree to this one. I have jsp's running on my server with ips.
There is a diff. story to the way my tomcat is setup.
1. I don't use the tomcat plugin whcih comes with WHM
2. Tomcat was setup and build from scratch on the server seperately. I got custom scripts written for the server which allows me to setup accounts with java enabled.
These scripts allow dedicated jvm / shared jvm accounts as and what is needed for the customer. (Btw a dedicated jvm account is the one basically with shell access, having tomcat running with the user as the owner).
Just try this, edit the server.xml of your tomcat and find the domain name which you setup for this ip address
&Host name=&domain.com&&
&Context path=&& docBase=&/home/abcdefg/public_html& crossContext=&false& /&
&/Host&
&Host name=&www.domain.com&&
&Context path=&& docBase=&/home/abcdefg/public_html& crossContext=&false& /&
&/Host&
So if above are the domain details, add the below just above these or underneath (whereever you want)
&Host name=&xx.xx.xx.xx&&
&Context path=&& docBase=&/home/abcdefg/public_html& crossContext=&false& /&
&/Host&
Replace the xx.xx.xx.xx with your domain ip address. Now kill tomat and start it back up. Check with ps -aux to confirm the same.
Try now. Incase of any troubles just mail me at
[email protected].
regards,
Anand