Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to map a java web application named "Cricket_rank_inspector" to the domain

I plan to add the following 2 records to the httpd.conf (under section of VHOST for

ProxyPass /cri ajp:// ProxyPassReverse /wri ajp://

Am I correct in assuming that the above will enable -> Java Web app.

What will be the exact URL of the web app as per my example? Also, do I need to configure something in Tomcat for assigning this specific domain ( to my web app? Because currently I am using IP address and Port also, when invoking this web application.

Any help and guidance would be appreciated.

Thanks, Arvind.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

use "ProxyPreserveHost" if you define Virtual Host on your tomcat server.xml,

ProxyPreserveHost On   
ProxyPass /cri ajp:// 
ProxyPassReverse /cri ajp://

if you are not define virtual host, your 2 lines config above should be enough

share|improve this answer
ok, i did what you have advised, now when I type in -> it changes to However I am getting an error in Internet Explorer "Oops link appears to be broken"-- does this mean that I have to use port number also if I want it to resolve to the java web app? Ideally I dont want to use port number, but even more important is not to use port 80 for java, becuase this creates security issues on the server. – Arvind Aug 4 '11 at 14:37
are you able to access from apache ?. what is your ServerName on apache ?, is or ?, could you try ?. – chocripple Aug 4 '11 at 15:14
hello, i am not able to access at IP:8009. I can access IP:8080 or ... (CRRI is just an example, if you want i can give you the exact value of domain name and IP)...So currently I am able to access at, but I want to be able to specify url without the port number ( and without tomcat using port 80 which causes security risk) this possible? – Arvind Aug 4 '11 at 15:22
so you have and, and you want to access to right ?. just add ProxyPass /cri http :// ProxyPassReverse /cri http :// it should be working – chocripple Aug 4 '11 at 15:32
i have one final question- if i use the IP as in your message, then should I install "Cricket_rank_Inspector" under the IP of my server, or should I install it under virtual host defined in Tomcat? – Arvind Aug 5 '11 at 8:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.