title: How to use the jsf ?faces-redirect=true behind a apache proxy
body: <p>I have an apache on port 80 as a proxy with this setting:</p>
  
  <pre><code>ProxyPass /myapp http://domain.com:8080/myapp
  </code></pre>
  
  <p>On port 8080 is a glassfish 4.0 server running.</p>
  
  <p>I want to use the ?faces-redirect=true function (<a href="http://en.wikipedia.org/wiki/Post/Redirect/Get" rel="nofollow">Post/Redirect/Get pattern</a>), to see always the right url after submitting a form. (Or something similar).</p>
  
  <p>After a click on a button on </p>
  
  <pre><code>domain.com/myapp/page.xhtml 
  </code></pre>
  
  <p>I want to go to </p>
  
  <pre><code>domain.com/myapp/page2.xhtml
  </code></pre>
  
  <p>But Java/JSF redirects me to domain.com:<strong>8080</strong>/myapp/page2.xhtml</p>
  
  <p>How can I say, that the redirection should go to domain.com/myapp/page2.xhtml on port 80?</p>