Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
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 {
listen8.8.8.8:80;

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;
allow8.8.8.8
deny all;
stub_status on;
access_log off;
}
}
------------------------------------
server {
listen 8.8.8.8:80;

server_nametools.domain.ru;

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_pass http://127.0.0.1:80;
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 {
listen 8.8.8.8:80;

server_name img-1.domain.ru;

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 Host domain.ru;
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


 




Copyright © Lexa Software, 1996-2009.