title: Setting up mod_jk redirect in Hybris
body: <p>I have installed apache httpd 2.2.15 in my app server. I need to get the login page(<a href="https://ip_address:9002/xxstorefront/xx/en/USD/login" rel="nofollow noreferrer">https://ip_address:9002/xxstorefront/xx/en/USD/login</a>) when I hit on <a href="https://dev.xxyy.com/login" rel="nofollow noreferrer">https://dev.xxyy.com/login</a>. I have installed SSL certificate for my domain and set below redirect rules.</p>
  
  <pre><code>ProxyPass         /login http://localhost:9001/xxstorefront/xx/en/USD/login
  ProxyPassReverse  /login http://localhost:9001/xxstorefront/xx/en/USD/login
  ProxyPass         /login https://localhost:9002/xxstorefront/xx/en/USD/login
  ProxyPassReverse  /login https://localhost:9002/xxstorefront/xx/en/USD/login
  
  RewriteEngine On
  RewriteRule ^(.*)/login http://%{ip_address:9001}$1/{xxstorefront/xx/en/USD/login}$2 [L,R] 
  </code></pre>
  
  <p>When I hit on <a href="https://dev.xxyy.com/login" rel="nofollow noreferrer">https://dev.xxyy.com/login</a>, I get below error,</p>
  
  <pre><code>Not Found 
  The requested URL /login was not found on this server.
  Apache/2.2.15 (CentOS) Server at dev.xxyy.com Port 443 
  </code></pre>
  
  <p>When I hit on <a href="https://dev.xxyy.com" rel="nofollow noreferrer">https://dev.xxyy.com</a>, I get the apache default homepage.</p>
  
  <p>Pls guide me how should I set the redirect rules.</p>