Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -----------------------------------------------------------------------------
- # Nginx configuration file
- # -----------------------------------------------------------------------------
- user www-data;
- # must match your number of CPU cores
- worker_processes 6;
- # max open files (but this reflects the amount already setup on our system)
- worker_rlimit_nofile 500000;
- pid /var/run/nginx.pid;
- events {
- # concurrent clients served by worker
- # tried other values from 1024 to 32768 without better results
- worker_connections 4096;
- # accept() as many connections as possible
- multi_accept on;
- # in case that's not the default policy under Linux...
- use epoll;
- }
- http {
- charset utf-8; # HTTP "Content-Type:" header
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 10;
- keepalive_requests 10; # 1000+ slows-down nginx enormously...
- types_hash_max_size 2048;
- include /usr/local/nginx/conf/mime.types;
- default_type application/octet-stream;
- gzip on;
- gzip_min_length 500;
- gzip_vary on; # HTTP "Vary: Accept-Encoding" header
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- server {
- listen 127.0.0.1:8080;
- index index.html;
- access_log off;
- error_log /dev/null crit;
- root /usr/local/nginx/html;
- location = /nop.gif {
- empty_gif;
- }
- location /imgs {
- autoindex on;
- }
- }
- }
- # -----------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement