title: PHP; Error 101 (net::ERR_CONNECTION_RESET): The connection was reset
body: <p>I have symfony 2 application which works fine on local computer. I uploaded it to 
  redhat's openshift cloud server. When I access the following page</p>
  
  <pre><code>https://jba-hj.rhcloud.com/web/app.php
  </code></pre>
  
  <p>it should redirect to </p>
  
  <pre><code>https://jba-hj.rhcloud.com/web/app.php/login
  </code></pre>
  
  <p>page, but server adds port number 80 to the url, i.e., it becomes:</p>
  
  <pre><code>https://jba-hj.rhcloud.com:80/web/app.php/login
  </code></pre>
  
  <p>and throws the following error:</p>
  
  <pre><code> Error 101 (net::ERR_CONNECTION_RESET): The connection was reset. 
  </code></pre>
  
  <p>If I delete port number, and reload the page, then login page displays correctly.
  The same error happens after login. (For the time being, you can try this by actually browsing to the urls above). </p>
  
  <p>I checked $_SERVER['SERVER_PORT'] variable on openshift server, and it returns 80; i.e,
  openshift's Apache server port number is 80.</p>
  
  <p>How to fix the problem?  </p>