Skip to content

Instantly share code, notes, and snippets.

@jdorfman
Created March 30, 2012 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdorfman/a113dd815b591fa841c3 to your computer and use it in GitHub Desktop.
Save jdorfman/a113dd815b591fa841c3 to your computer and use it in GitHub Desktop.
events {
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
log_format '$remote_addr $http_host $remote_user [$time_local] '
'"$request" $status $body_bytes_sent $upstream_cache_status '
'"$http_referer" "$http_user_agent"';
include /usr/local/nginx/conf/log.conf;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 4;
proxy_buffer_size 64k;
proxy_buffers 64 64k;
#gzip on;
large_client_header_buffers 4 32k;
server_names_hash_max_size 65536;
server_names_hash_bucket_size 256;
ssl_ciphers ALL:!kEDH!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
server {
listen 80;
server_name .vir..com localhost;
autoindex on;
location / {
root html;
index index.html index.htm;
}
location /server-status {
stub_status on;
access_log off;
# allow all;
# deny all;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
server {
listen 443;
server_name sea..com localhost;
ssl on;
ssl_certificate /usr/local/nginx/conf/ssl/star.-.com.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/star.-.com.key;
ssl_client_certificate /usr/local/nginx/conf/ssl/sf_bundle.crt;
autoindex on;
location / {
root html;
index index.html index.htm;
}
}
include /usr/local/nginx/conf/vhosts/*;
include /usr/local/nginx/conf/sslvhosts/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment