Welcome! Log In Create A New Profile

Advanced

Re: Загрузка картинок фронтэндом nginx

June 28, 2011 01:07PM
Пожалуйста:

server {
listen *:80;

error_page 403 404 = @fallback;
location @fallback {
proxy_pass http://127.0.0.1:81;
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;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /etc/nginx/html;
}

location / {
log_not_found off;
limit_req zone=one burst=10;
client_max_body_size 16m;
client_body_buffer_size 128k;
proxy_pass http://127.0.0.1:81/;
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;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 8 64k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_temp_path /var/tmp/nginx;
limit_except POST GET {
allow 92.181.34.42/32;
deny all;
}
}
location ~ /\.ht {
deny all;
}

location ~* \.(gif|jpg|jpeg|png|bmp|ico|js|css|txt|html|htm|xml|swf|flv)$ {
#root /var/www/servername1;
#expires 30d;
}
location ~* \.(mp3|wmv|avi|mpg|mpeg|mov|doc|pdf|rtf|xls|zip|rar)$ {
#root /var/www/servername1;
#expires 30d;
}
}
Subject Author Posted

Загрузка картинок фронтэндом nginx

setter June 24, 2011 03:58AM

Re: Загрузка картинок фронтэндом nginx

setter June 24, 2011 03:28PM

Re: Загрузка картинок фронтэндом nginx

Viktor V. Kudlak June 24, 2011 03:40PM

Re: Загрузка картинок фронтэндом nginx

setter June 28, 2011 12:10PM

Re: Загрузка картинок фронтэндом nginx

Alex Vorona June 28, 2011 01:00PM

Re: Загрузка картинок фронтэндом nginx

setter June 25, 2011 03:11AM

Re: Загрузка картинок фронтэндом nginx

setter June 28, 2011 01:07PM

Re: Загрузка картинок фронтэндом nginx

setter June 28, 2011 01:36PM

Re: Загрузка картинок фронтэндом nginx

setter June 28, 2011 01:41PM

Re: Загрузка картинок фронтэндом nginx

Alex Vorona June 28, 2011 01:26PM

Re: Загрузка картинок фронтэндом nginx

Igor Sysoev June 28, 2011 02:14PM

Re: Загрузка картинок фронтэндом nginx

Alex Vorona June 28, 2011 02:28PM

Re: Загрузка картинок фронтэндом nginx

setter June 28, 2011 02:29PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready