Posts

Showing posts with the label AJP

Hybris ERR_TOO_MANY_REDIRECTS with Apache AJP proxy?

Problem statement: We have setup Apache as the reverse proxy using  mod_proxy_ajp . When we access any Product or Category having "+" in their name, we get  ERR_TOO_MANY_REDIRECTS  error. Solution: The way Apache handles "+", causes a redirection loop. You can add "nocanon" to your ajp directives to resolve this. Now you are free to use "+" character in the product name. ... <VirtualHost *:443> ... ProxyPass / ajp://localhost:8009/ nocanon </VirtualHost> ...  Allow slash [will not work with Hybris] If you also want to allow slash "\", then you should configure the proxy server to pass the request URL with no decoded for it. check the below configuration using  AllowEncodedSlashes NoDecode <VirtualHost *:443> ... AllowEncodedSlashes NoDecode ProxyPass / ajp://localhost:8009/ nocanon </VirtualHost> ProxyPass Keywords  nocano