Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ÂÁÇÁ ???
ÄÏÂÒÙÊ.
ÄÅÌÁÌ ÄÅÓÑÔËÉ ÒÁÚ, ÎÏ × ÜÔÏÔ ÒÁÚ ÞÅÔÏ ÎÅ ÔÁË. ÎÅ ÐÁÛÅÔ server default; ËÏÎÆÉÇÉ ÎÉÖÅ.
ÐÒÉ ÜÔÏÍ ÚÁÐÉÓØ × ÌÏÇÁÈ ÐÏÑ×ÌÑÅÔÓÑ ÎŠך/var/log/nginx/8.8.8.8.log, Á ך/var/log/nginx/img-1.domain.ru.log! Ô.Å. ÎÅ ÐÁÛÅÔ ËÏÎÓÔÒÕËÃÉÑšserver default; ? ÐÒÏ×ÅÒÉÌ, ÞÔÏ ÎÇÉÎËÓ ÐÁÒÓÉÔ ÜÔÏÔ ÆÁÊÌ ×ÏÏÂÝÅ, ÓÄÅÌÁÌ ÏÛÉÂËÕ × ÎÅÍ,
ÎÇÉÎËÓ ÒÕÇÎÕÌÓÑ.
ËÏÎÆÉÇÉ ËÏÐÉÒÏ×ÁÌ Ó ÄÒ ÓÅÒ×ÅÒÁ, ÎÁ ËÏÔÏÒÏÍ ÏÎÉ ÒÁÂÏÔÁÀÔšËÏÒÒÅËÔÎÏ, ÅÄÉÎÓÔ×ÅÎÎÏÅ ÜÔÏÔ ÐÏËÏÒÏÞÅ ÂÕÄÅÔ. ÐÒÏ×ÅÒÉÌ ÎÁ 0.8 ×ÅÒÓÉÉ, É ÎÁ 1.0 ÏÄÉÎÁËÏ×Ï.
ÞÔÏ ÎÅ ÔÁË ÓÄÅÌÁÌ ? =(
------------------ # cat nginx.conf š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š šš user www www;
worker_processes 4; worker_rlimit_nofile 8192;
timer_resolution 100ms; worker_priority -5;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events { šš šworker_connections 8192; šš šuse kqueue; }
http { šš šinclude mime.types; šš š
šš šdefault_type application/octet-stream;
šš šaccess_log /var/log/nginx/access.log; šš š šš šlog_format proxy '"$request";$remote_addr;$proxy_add_x_forwarded_for';
šš šclient_body_temp_path š š š /tmp/nginx/body_temp 1 2; šš šproxy_temp_path š š š š š š /tmp/nginx/proxy_temp 1 2; šš šfastcgi_temp_path š š š š š /tmp/nginx/fastcgi_temp 1 2;
šš škeepalive_timeout 30; šš šreset_timedout_connection on;
šš šgzip š š š š š š š šon; šš šgzip_min_length š š 1100; šš šgzip_buffers š š š š512 8k;
šš šgzip_comp_level š š 7; šš šgzip_proxied š š š šany; šš šgzip_types š š š š štext/plain text/js application/x-_javascript_ text/css;
šš šsendfile š šon; šš štcp_nodelay on;
šš štcp_nopush šon;
šš šserver_names_hash_max_size 2024; šš šserver_names_hash_bucket_size 128;
šš š# --- Hide server name --- # šš šserver_tokens off;
šš šinclude russia.ip; # ÆÁÊÌ ÐÕÓÔÏÊ
šš šinclude domains/*/+*; # ÐÏÄÇÒÕÖÁÅÍ ÅÎÁÂÌÅÎÎÙÅ ×ÉÒÔ ÈÏÓÔÙ } ---------------------------- # cat +8.8.8.8
server {
šš šserver_name default rcvbuf=8k sndbuf=16k backlog=8192 accept_filter=httpready; šš š#šserver_name 8.8.8.8 default rcvbuf=8k sndbuf=16k backlog=8192 accept_filter=httpready; - ÔÏÖÅ ÎÅ ÐÁÛÅÔ.
šš šaccess_log /var/log/nginx/8.8.8.8.log combined;
šš šclient_header_timeout 15;
šš šlocation / { return 200; }
šš šlocation /nginx_status {
šš š š šallow 127.0.0.1; šš š š šallowš8.8.8.8 šš š š šdeny all; šš š š šstub_status on; šš š š šaccess_log off; šš š} } ------------------------------------
server {
šš šaccess_log /var/log/nginx/tools.domain.ru.log combined;
šš šauth_basic "closed site"; šš šauth_basic_user_file /usr/local/etc/nginx/htpasswd;
šš šlocation / { šš š š šproxy_redirect off; šš š š šproxy_set_header Host $host; šš š š šproxy_set_header X-Real-IP $remote_addr;
šš š š šproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; šš š š šclient_max_body_size 200m; šš š š š} } -------------------------------------
server {
šš šaccess_log /var/log/nginx/img-1.domain.ru.log combined;
šš šlocation / { return 200; }
šš šlocation ^~ /media/images/uploaded { šš š š š root /home/backup; šš š š š try_files š š š$uri š@notfound; šš š š š # access_log off;
šš š š š expires 43200s; šš š š š open_file_cache max=1024 inactive=600s; šš š š š open_file_cache_valid 2000s; šš š š š open_file_cache_min_uses 5; šš š š š open_file_cache_errors on;
šš š š š }
šš š location @notfound { šš š š š proxy_redirect off;
šš š š š proxy_set_header X-Real-IP $remote_addr; šš š š š proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; šš š š š client_max_body_size 10m; šš š š š # access_log off;
šš š š š expires 43200s; šš š š š } } ---------------------------------------
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|