Created
August 14, 2011 17:23
-
-
Save vincentbernat/1145093 to your computer and use it in GitHub Desktop.
nginx configuration for SSL benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user root; | |
worker_processes 2; | |
worker_rlimit_nofile 90000; | |
error_log /usr/local/nginx/logs/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
use epoll; | |
multi_accept off; | |
accept_mutex off; | |
worker_connections 65536; | |
} | |
http { | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
gzip off; | |
access_log off; | |
proxy_buffering off; | |
upstream backend { | |
server 172.31.208.2 max_fails=3 fail_timeout=15s; | |
server 172.31.209.2 max_fails=3 fail_timeout=15s; | |
server 172.31.210.2 max_fails=3 fail_timeout=15s; | |
server 172.31.211.2 max_fails=3 fail_timeout=15s; | |
} | |
server { | |
listen 443 ssl default_server; | |
ssl on; | |
ssl_certificate /WOO/server1024.crt; | |
ssl_certificate_key /WOO/server1024.key; | |
ssl_session_cache shared:SSL:500m; | |
ssl_ciphers ALL; | |
location / { | |
proxy_pass http://backend; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment