Search code examples
ruby-on-railssslhttpsunicorn

Can Unicorn handle HTTPS requests directly (without the request going through Apache/Nginx)?


I'm sure many will consider this a dumb question but I can't find a straight answer anywhere on the web:

Can Unicorn be configured to handle HTTPS requests directly, without reverse-proxying the request through another web server such as Apache or Nginx? (And if so, how?)


Solution

  • Unicorn is optimized to handle fast connections and is not meant to be used for direct client communication. If you consider using https I would assume that your are transferring data through an potentially uncontrollable line. It's better to use another web server for terminating the ssl connection.