Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
location и proxy pass
- To: nginx-ru@xxxxxxxxx
- Subject: location и proxy pass
- From: "AMax" <nginx-forum@xxxxxxxx>
- Date: Thu, 16 May 2013 07:12:57 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=e/wHgn4uQHQpe6f+zZtfYWFCdyg9s8AYjc+nuZcUZUo=; b=FYLO0jsQg3XJt+Eiej1UMETMsVmbzbqOAcn14xZAIuUwue7U0BZkFOpzgkVz8MI2565T2caZYvcYuyPO/wUHi+oeMNKlsPxsPiOgCUVnvC9q4iGZMlikW8XQTVBFDdp/yfexE0HgWDUWNM0heOqnUQQcmyya50O2TkuRZXhWkn4=;
Есть такой server:
server {
listen 80;
server_name example.com www.example.com;
access_log /var/log/nginx/example.com/access.log main;
error_log /var/log/nginx/example.com/error.log;
include /etc/nginx/cloudflare_params;
location /w/images/ {
root /var/www/data/example.com;
# log only hotlinking
if ($http_referer ~* "^http://(www\.)?example\.com/.*$" ) {
access_log off;
}
}
location /w/skins/ {
root /var/www/data/example.com;
access_log off;
}
location ~ ^/w/extensions/.*?\.(sql|php)$ { return 403; }
# location ^~ /w/load.php {
# proxy_pass http://127.0.0.1:81/;
# include /etc/nginx/proxy_params;
# access_log off;
# }
location / {
proxy_pass http://127.0.0.1:81/;
include /etc/nginx/proxy_params;
}
}
Если раскомментировать location ^~ /w/load.php, он перестает работать,
точнее возвращает некорректный ответ от сервера, хотя, вроде бы, должен
обрабатываться тем же backend с теми же параметрами, только не писать в
журнал.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,239260,239260#msg-239260
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|