A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
AJP Connector problem
Joined: May 25, 2011
May 27, 2011 11:10:15
ok, so my problem seems to be simple enough but I can't figure it out.
I have a virtual host set up like:
<VirtualHost *:80> ServerName site1.com ServerAlias *.site1.com ServerAdmin email@example.com ProxyRequests Off <Location /> ProxyPass ajp://127.0.1.1:8009/site1/ ProxyPassReverse ajp://127.0.1.1:8009/site1/ </Location> <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost>
then when I go to www.site1.com, it goes to www.site1.com/site1/site1/Content/main.jsp
it needs to go to www.site1.com/site1/Content/main.jsp
But if I rewrite the proxypass like this, without ajp:
<Location /> ProxyPass http://127.0.1.1:8009/site1/ ProxyPassReverse http://127.0.1.1:8009/site1/ </Location>
everything works as you would expect, www.site1.com goes to www.site1.com/site1/Content/main.jsp
If anyone has seen a similar problem using AJP, I would appreciate any hint as to where I can find more info.
I agree. Here's the link:
subject: AJP Connector problem
we have ? in a url and ajp converts it to %3F
Tomcat behind Apache -- How to handle SSL?
Tomcat 7 digest authentication problem
After I've configured Apache+Tomcat, WEB-INF cannot be accessed from JSP
Sending an HTTP request from behind Apache
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014