ok i am here looking for help. i have read some great stuff, but unfortunately, most everything i am finding is so dated, none of it works.
Running Dedicated Server with whm/cpanel
I have installed tomcat using easyapache script builder, and tomcat appears in the services running. Tomcat is not my issue here i do not think.
So ok we have tomcat running can be verified calling http://domain.com:8080 which loads the default app from /ROOT of tomcat server
ok all of that is well. though we dont want to tell people to put the :PORT on the url of the site
ok steps taken:
back to easyapache, and though there is nothing that actually says mod_proxy, there is an option for proxy, which appears to be selected by default.
ok we can hit httpd.conf and /mod_proxy
and we see:
ok since i am digging, i want to look to see if the module is loaded?
command: /usr/local/apache/bin/httpd -l
root@themachine [/usr/local/apache/conf]# /usr/local/apache/bin/httpd -l
Compiled in modules:
ok going further, and this is all from reading online docs, and trying to make this work, so if my information is overwhelming, i apologize, but i have been going at this for three days now;
i created the account on whm
then i went to /usr/local/httpd/conf
VirtualHost shows up, and from what i have read, i am to create a new VirtualHost
DocumentRoot /path/to/apache-tomcat/webapps/? (this is where i get lost as well)
ProxyPass / http://subdomain.domainname.com:8080/
ProxyPassReverse / http://subdomain.domainname.com:8080/
ok this dont work
well not on this particular instance, i believe i have the exact same build on another machine, and alas, the jsp apps are loading on tomcat with one minor glitch. will get into that momentarily.
so on this particular instance, i am not getting any forwarding at all. but i can call the url:PORT, and tomcat loads up.
to iterate what i was talking about on the install on the other machine. i set up a subdomain, and tried everything i could think of when trying to get it to go to a specific app other than /ROOT. ended up putting a redirect from /ROOT/index.html --> to custom app. and that is not really acceptable, because now, we have http://domain.com/APPNAME when calling the domain where the ProxyPass was setup.
now here is where it gets outside of the realm of my understanding
if i call another subdomain on that same server, it will resolve to the customAPP on webapps/MYAPP
yeah dont get that one, when that specifc account does not have a directive in its <VirtualHost> container to resolve to :8080
so it may be that i have some wrong there.
ok now that i have rambled. i will state what i am trying to accomplish:
use tomcat and set it up so that when calling the domain with the jsp app, then the index of that specific app will appear.
Three jsp or servlet apps:
http://domain1.com --> jsp app 1
http://domain2.com --> servlet 1
http://domain3 --> jsp app 2
how can i tell if mod_proxy is working correctly?
do i set the ProxyPass and ProxyPassReverse on each <VirtualHost>
how do i specify DocumentRoot when considering the tomcat server?
ok any help will be greatly appreciated. and sorry for the long-windedness. but i have tried, and now seeking help.