Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes 1;
- worker_rlimit_nofile 20480;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- # multi_accept on;
- }
- http {
- include /etc/nginx/mime.types;
- #access_log off;
- access_log /var/log/nginx/access.log;
- expires 4h;
- sendfile on;
- #tcp_nopush on;
- upload_progress proxied 1m;
- ##Timeouts
- #keepalive_timeout 0;
- keepalive_timeout 65;
- tcp_nodelay on;
- server_tokens off;
- ## Request limits
- limit_req_zone $binary_remote_addr zone=gulag:1m rate=60r/m;
- ##Enable gzip compression
- gzip on;
- gzip_http_version 1.1;
- gzip_vary on;
- gzip_comp_level 1;
- gzip_proxied any;
- gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;gzip_buffers 16 8k;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- ##blocked ips
- deny 70.38.32.242; #hack attempt requests
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement