Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes 1;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- # multi_accept on;
- }
- http {
- ## Basic Settings ##
- client_max_body_size 50m;
- client_header_timeout 5;
- keepalive_timeout 5;
- port_in_redirect off;
- sendfile on;
- server_name_in_redirect off;
- # server_names_hash_bucket_size 64;
- server_tokens off;
- tcp_nopush on;
- tcp_nodelay on;
- types_hash_max_size 2048;
- ## GeoIP ##
- geoip_country /etc/nginx/geoip/GeoIP.dat; # the country IP database
- geoip_city /etc/nginx/geoip/GeoLiteCity.dat; # the city IP database
- ## MIME ##
- 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;
- ## Gzip Settings ##
- gzip on;
- gzip_disable "msie6";
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_min_length 1400;
- # gzip_vary on;
- # gzip_proxied any;
- # gzip_comp_level 6;
- # gzip_buffers 16 8k;
- # gzip_http_version 1.1;
- ## nginx-naxsi config ##
- ## Uncomment it if you installed nginx-naxsi
- #include /etc/nginx/naxsi_core.rules;
- ## Virtual Host Configs ##
- #include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement