Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes 1;
- pid /run/nginx.pid;
- events {
- worker_connections 768;
- # multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- client_max_body_size 128m;
- access_log off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 5;
- keepalive_requests 100;
- reset_timedout_connection on;
- client_body_timeout 10;
- send_timeout 2;
- types_hash_max_size 2048;
- # server_tokens off;
- server_names_hash_bucket_size 64;
- # server_name_in_redirect off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- ##
- # Logging Settings
- ##
- #access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- ##
- # HowToForge - File Cache Settings
- ##
- open_file_cache max=5000 inactive=20s;
- open_file_cache_valid 30s;
- open_file_cache_min_uses 2;
- open_file_cache_errors on;
- ##
- # HowToForge - Gzip Settings
- ##
- gzip on;
- gzip_static on;
- gzip_disable "msie6";
- gzip_http_version 1.1;
- gzip_vary on;
- gzip_comp_level 6;
- gzip_proxied any;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
- gzip_buffers 16 8k;
- ##
- # HowToForge - FastCGI Cache
- ##
- fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=100m inactive=60m;
- ##
- # nginx-naxsi config
- ##
- # Uncomment it if you installed nginx-naxsi
- ##
- #include /etc/nginx/naxsi_core.rules;
- ##
- # nginx-passenger config
- ##
- # Uncomment it if you installed nginx-passenger
- ##
- #passenger_root /usr;
- #passenger_ruby /usr/bin/ruby;
- ##
- # Virtual Host Configs
- ##
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
Advertisement
Add Comment
Please, Sign In to add comment