title: Error code: ssl_error_rx_record_too_long for https in nginx on ruby on rails application
body: <p>am using rails 3.2 and ruby 1.9 for my app, have to run application in https with domain name like <a href="https://welcome.com">https://welcome.com</a> on my system. so i configure my nginx by creating ssl certificate for domain name and https </p>
  
  <p>snapshort of ssl: </p>
  
  <pre><code># HTTPS server
  #
  server {
      listen 443 ssl;
  server_name welcome.com;
  
  root html;
  index index.html index.htm;
  
  ssl on;
  ssl_certificate /etc/nginx/ssl/server.crt;
  ssl_certificate_key /etc/nginx/ssl/server.key;
  
  ssl_session_timeout 5m;
  }
  </code></pre>
  
  <p>i can able to saw nginx home page by calling welcome.com and <a href="https://welcome.com">https://welcome.com</a>. without running the rails application</p>
  
  <p>My application also running in port 443 successfully, but after querying in browser like <a href="https://welcome.com">https://welcome.com</a> </p>
  
  <p>Rails terminal showing error: </p>
  
  <pre><code> ERROR bad Request-Line `\x16\x03\x01\x00�\x01\x00\x00�\
   ERROR bad URI `._i\b8\x10�yA�^6�v�M|
  </code></pre>
  
  <p>In browser throwing error: </p>
  
  <pre><code>SSL received a record that exceeded the maximum permissible length.
  
  (Error code: ssl_error_rx_record_too_long)
  </code></pre>
  
  <p>Even tried by clearing browser history repeatedly, but the result is same. </p>
  
  <p>Am not sure what i made wrong, can any one help  me? </p>
  
  <p>have i made any wrong in certificate creation ?</p>