Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm attempting to use apache as a front end with glassfish and openfire. My httpd.conf config is this:

ProxyPass /proxy http://localhost:7070/http-bind/
ProxyPassReverse /proxy http://localhost:7070/http-bind/

ProxyPass /app http://localhost:8080/app
ProxyPassReverse /app http://localhost:8080/app

This is working fine for me so far, domain.com/app connects to my glassfish server, and domain.com/proxy connects to my openfire server.

What I really want, is for the URL to be domain.com and direct the user to glassfish, but for domain.com/proxy to still direct to openfire. Is this possible?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Does this not work? I think the proxy pass directives are parsed in order so as long as you have the more specific case first you should be ok.

ProxyPass /proxy http://localhost:7070/http-bind/
ProxyPassReverse /proxy http://localhost:7070/http-bind/

ProxyPass / http://localhost:8080/app
ProxyPassReverse / http://localhost:8080/app

Mentioned here:

http://www.2020media.com/blog/2010/02/excluding-directories-in-ajp-proxypass/

share|improve this answer
    
doh. I feel kinda dumb now. localhost:8080/app didn't work, but localhost:8080/app (with trailing slash) does. –  KevMo Mar 3 '11 at 0:50
add comment

Your Answer

 
discard

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.