Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created August 7, 2008 09:57
Show Gist options
  • Save ELLIOTTCABLE/4376 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/4376 to your computer and use it in GitHub Desktop.
# user and group to run as
user http http;
# number of nginx workers
worker_processes 6;
# pid of nginx master process
pid /srv/temp/pids/nginx.pid;
# Number of worker connections. 1024 is a good default
events {
worker_connections 1024;
}
# start the http module where we config http access.
http {
# pull in mime-types. You can break out your config
# into as many include's as you want to make it cleaner
include /etc/nginx/conf/mime.types;
# set a default type for the rare situation that
# nothing matches from the mimie-type include
default_type application/octet-stream;
# configure log format
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
# main access log
access_log /srv/logs/nginx/access.log main;
# main error log
error_log /srv/logs/nginx/error.log debug;
# no sendfile on OSX
sendfile on;
# These are good default values.
tcp_nopush on;
tcp_nodelay off;
# output compression saves bandwidth
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain
text/html
text/css
application/x-javascript
text/xml
application/xml
application/xml+rss
text/javascript;
# Set the max size for file uploads to 50Mb
client_max_body_size 50M;
root /srv/www;
server { # yreality.net
server_name yreality.net;
include /srv/conf/nginx/includes.conf;
root /srv/www/yreality.net;
}
server { # pneumonoultramicroscopicsilicovolcanokoniosis.info
server_name .pneumonoultramicroscopicsilicovolcanokoniosis.info;
include /srv/conf/nginx/includes.conf;
root /srv/www/pumsvk.info;
}
server { # Default
server_name _;
include /srv/conf/nginx/includes.conf;
root /srv/www/system;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment