Register / Login
Win a copy of
Functional Reactive Programming
this week in the
AJP Connector problem
posted 5 years ago
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 firstname.lastname@example.org 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.
Tomcat behind Apache -- How to handle SSL?
After I've configured Apache+Tomcat, WEB-INF cannot be accessed from JSP
Tomcat 7 digest authentication problem
we have ? in a url and ajp converts it to %3F
Sending an HTTP request from behind Apache