Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user web;
- worker_processes 8; # 1 per cpu
- worker_rlimit_nofile 1024; #20000; 15/09/2015
- error_log /home/web/log/nginx/_nginx/sys_error.log debug;
- #pid /var/run/nginx.pid;
- #google_perftools_profiles /tmp/google_perftools/;
- events
- {
- worker_connections 15000; #4096; #15000; 15/09/2015
- multi_accept on;
- use kqueue; #solo su FreeBSD e Linux 2.6
- }
- http
- {
- # include /home/serverweb/etc/nginx/cloudflare-ip.conf;
- # include /home/serverweb/etc/nginx/incapsula-ip.conf;
- include /home/serverweb/etc/nginx/mime.types;
- # log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
- log_format rt_cache '$remote_addr - $upstream_cache_status [$time_local] '
- '"$request" $status $body_bytes_sent '
- '"$http_referer" "$http_user_agent"';
- # access_log /home/web/log/nginx/_nginx/access.log; # Log accessi al sito di default
- access_log off;
- error_log /home/web/log/nginx/_nginx/error.log warn; # Log errori al sito di default
- #fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=cache_zone:100m inactive=60m;
- #fastcgi_cache_key "$scheme$request_method$host$request_uri";
- #fastcgi_cache_use_stale error timeout invalid_header http_500;
- #fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
- #add_header rt-Fastcgi-Cache $upstream_cache_status;
- #add_header Content-Security-Policy "default-src 'self' https://*.google-analytics.com https://*.googleapis.com https://*.gstatic.com https://*.gravatar.com https://*.w.org; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ssl.google-analytics.com https://connect.facebook.net; img-src 'self' https://ssl.google-analytics.com https://s-static.ak.facebook.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://themes.googleusercontent.com; frame-src https:// https://www.facebook.com https://s-static.ak.facebook.com; object-src 'none'";
- # add_header X-Xss-Protection "1; mode=block" always;
- # add_header X-Frame-Options "SAMEORIGIN" always;
- # add_header X-Content-Type-Options "nosniff" always;
- client_max_body_size 50M; #20M; #15/09/2015
- client_body_buffer_size 1m; #20M; #15/09/2015
- client_body_timeout 15; #15/09/2015
- client_header_timeout 15; #15/09/2015
- keepalive_timeout 2 2; #15/09/2015
- send_timeout 15; #15/09/2015
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- gzip on;
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_min_length 1100;
- 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;
- gzip_disable "msie6";
- # gzip_min_length 1024;
- # gzip_buffers 4 8k;
- # gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- open_file_cache max=2000 inactive=20s;
- open_file_cache_valid 60s;
- open_file_cache_min_uses 5;
- open_file_cache_errors off;
- server_tokens off; # Non mostrare la versione di Nginx
- server_names_hash_bucket_size 100; #15/09/2015
- charset utf-8;
- ssi on;
- ssi_value_length 1024;
- upstream backend {
- server unix:/tmp/php-fpm.php0.sock;
- server unix:/tmp/php-fpm.php1.sock;
- server unix:/tmp/php-fpm.php2.sock;
- server unix:/tmp/php-fpm.php3.sock;
- server unix:/tmp/php-fpm.php4.sock;
- server unix:/tmp/php-fpm.php5.sock;
- server unix:/tmp/php-fpm.php6.sock;
- server unix:/tmp/php-fpm.php7.sock;
- }
- # include /home/serverweb/etc/nginx/_conf/manutenzione.conf;
- include /home/web/conf_nginx/*.conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement