Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [code]root@vm1:~# cat /etc/nginx/nginx.conf
- user www-data;
- worker_processes 8;
- pid /var/run/nginx.pid;
- events {
- worker_connections 32768;
- multi_accept on;
- use epoll;
- }
- http {
- ##
- # Basic Settings
- ##
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 15;
- types_hash_max_size 2048;
- server_tokens off;
- client_header_timeout 10m;
- client_body_timeout 10m;
- send_timeout 10m;
- proxy_connect_timeout 1m;
- proxy_send_timeout 1m;
- proxy_read_timeout 1m;
- 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 off;
- #access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- ##
- # Gzip Settings
- ##
- gzip on;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- # gzip_vary on;
- # gzip_proxied any;
- # gzip_comp_level 6;
- # gzip_buffers 16 8k;
- # gzip_http_version 1.1;
- # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- ##
- # 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/*;
- }
- [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement