Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the best web server to handle SSL connections? 80% of our connections will be in SSL, so we need to choose the right web server. We're leaning towards nginx, but don't know how it handles SSL.

share|improve this question

closed as not constructive by Scott Pack, Ward, Shane Madden, Wesley, Tom O'Connor Oct 16 '11 at 7:24

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

2's more a function of what content you're serving than just how it handles SSL. – Bart Silverstrim Oct 16 '11 at 0:25
If you're really worried about the SSL component (in terms of performance I'm assuming) of your web application, you should look at using an ssl accelerator instead of the webserver. Provided your deployment warrants this, you'd have a load balancer upstream terminate the connections and do the SSL stuff. – sandroid Oct 16 '11 at 1:22
Over SSL the key-exchange and cipher have a big impact on performance, but in general processing time will be limited by dynamic content more than by SSL. nginx does very well (both for serving content and SSL), if you disable DHE key exchange, have your SSL sessions cached, and enable keep-alive. – cyberx86 Oct 16 '11 at 1:25

There are a lot of factors that affect SSL speeds from the choice of SSL library (OpenSSL vs GNUTLS), the choice of algorithms (RC4 vs AES etc) to the type of web-server used (Apache vs NGINX etc).

That said, you should not be too concerned with SSL performance these days. With a correctly configured SSL machine, there is little additional overhead compared to non-SSL connections.

Adam Langley from Google released some tips on SSL tuning a while back and their experiences switching over to SSL. I recommend that you read his article.

On our production frontend machines, SSL/TLS accounts for less than 1% of the CPU load, less than 10KB of memory per connection and less than 2% of network overhead.

share|improve this answer

There is not much difference between web servers in SSL handling, SSL handling depends on the CPU power of the web server and its RAM size to handle concurrent connections.

I recommend you use SSL accelerator cards on your web server to handle SSL better, you can also use SSL offloading with a seperate hardware SSL accelerator device that acts as a load balancer or SSL terminator for your SSL requests.

share|improve this answer

Both Reza and sybreon have brought up some good points about SSL it is true that a well apache and nginx will handle SSL close to one another when they are correctly configrered. It is also important to know that an SSL card will bost your ssl perfomance on decrypting the data.

Now if you need to do it on the cheap with I would recommend load balancing with nginx and then processing with apache. I have found(and i am sure many people will disagre with me) that apache by default is more secure then nginx if your willing to work with nignx and really limit what can be called and where the call is directed then you can nginx nice and tight like a drum but if you need something working and not have to worry about it being hacked to quickly stick with apache. I would then use nginx load balncing on ip_hash mode this way requests get sent to the same server (unless a server fail happens) So if you are getting a lot of requests this should be able to help you fix ur ssl issue if you think you will go down.

If you wanna a really easy look on setting up nginx and load balancing look here.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.