Skip to content

Instantly share code, notes, and snippets.

@vincentbernat
Created August 14, 2011 17:23
Show Gist options
  • Save vincentbernat/1145093 to your computer and use it in GitHub Desktop.
Save vincentbernat/1145093 to your computer and use it in GitHub Desktop.
nginx configuration for SSL benchmark
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