Created
October 15, 2013 17:25
-
-
Save lajunta/6995269 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pid /var/run/nginx.pid; | |
#user nginx nginx; | |
user nobody nogroup; | |
worker_processes 2; | |
events { | |
use epoll; | |
worker_connections 1024; | |
} | |
http { | |
## MIME types | |
include /etc/nginx/mime.types; | |
# default_type application/octet-stream; | |
## Size Limits | |
client_body_buffer_size 64K; | |
client_header_buffer_size 64K; | |
client_max_body_size 100M; | |
large_client_header_buffers 1 1k; | |
## Timeouts | |
client_body_timeout 90; | |
client_header_timeout 90; | |
# expires 10d; | |
keepalive_timeout 90 90; | |
send_timeout 90; | |
## General Options | |
ignore_invalid_headers on; | |
keepalive_requests 100; | |
recursive_error_pages on; | |
sendfile on; | |
server_name_in_redirect off; | |
server_tokens off; | |
## TCP options | |
tcp_nodelay on; | |
tcp_nopush on; | |
## Compression | |
gzip on; | |
gzip_buffers 16 8k; | |
gzip_comp_level 6; | |
gzip_http_version 1.0; | |
gzip_min_length 0; | |
gzip_types application/x-javascript text/plain text/css image/x-icon application/x-perl application/x-httpd-cgi; | |
gzip_proxied any; | |
gzip_vary on; | |
## Log Format | |
log_format main '$remote_addr $host $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" "$http_user_agent" ' | |
'"$gzip_ratio"'; | |
server { | |
listen 80; | |
server_name localhost; | |
access_log /var/log/nginx/access.log main; | |
location / { | |
root /var/www/html; | |
index index.html; | |
} | |
} | |
include /etc/nginx/conf.d/nilcast.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment