Posts

Showing posts with the label apache web server for hybris

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...

Configure Apache web server for SAP Hybris - CentOS 7

Configure Apache Virtual Hosts - CentOS 7 This article shows you  H ow I installed and setup Apache web server for my development environment , which is pointing to my backend Application server using proxy. Install the Apache web server Update your packages on centos 7. sudo yum update Install Apache sudo yum install httpd Start the service sudo service httpd start Set up Apache server Apache can be configured by  httpd.conf  file, which also includes all files present under  conf.d  folder, so let's create  .conf  file under  conf.d  folder. sudo vim /etc/httpd/conf.d/webserver.conf Past the code and change configuration based on your requirement, here I need to call App server on HTTPS also don't want SSL handshake. <VirtualHost *:80> ServerAdmin email@example.com ServerName www.example.com ServerAlias example.com SSLProxyEngine On SSLProxyEngine on SSLProxyVerify none ...