title: Redirect Loop Problem for Web Policy Agent?
body: <p>I followed <a href="https://wikis.forgerock.org/confluence/display/openam/Web+Policy+Agent+for+Apache+2.2+Installation+Guide" rel="noreferrer">the installation guide</a> for an Apache Web Policy Agent, but it always results in an endless redirect loop between web and application server. Firefox says "The page isn't redirecting properly" and Chrome thinks that "This webpage has a redirect loop". The setup is an Apache 2 on port 80 with a small demo app and a Web Policy Agent, and a Tomcat 7 server on port 8080 with an OpenAM server (the former OpenSSO from Sun):</p>
  
  <ul>
  <li>App URL <a href="http://hostname.example.com:80/" rel="noreferrer">http://hostname.example.com:80/</a>   (App and Agent, running on Apache 2.2.16)</li>
  <li>OpenAM Server URL <a href="http://hostname.example.com:8080/openam" rel="noreferrer">http://hostname.example.com:8080/openam</a>   (running on Tomcat 7.0.12)</li>
  </ul>
  
  <p>The Live HTTP Header Firefox plugin shows that the policy agent and the OpenAM server (i.e. the Apache and Tomcat servers) redirect to each other, although the server sets the SSO Token Cookie correctly. The name of the SSO Token Cookie has the default value "iPlanetDirectoryPro". Any idea how to solve the problem?</p>