Welcome! Log In Create A New Profile

Advanced

limit_except

Игорь Хомяков
February 02, 2010 04:42AM
привет!

у меня стоит nginx 0.7.62 (freebsd ports) у которого в upstream-ах
несколько squid-ов

пробую разрешить метод PURGE только для своих IP
location / {
limit_except GET {
allow x.x.x.x/16;
deny all;
}
proxy_pass http://cache;
proxy_set_header Host $host;
}
получаю

squidclient -l внешний_ip -p80 -m PURGE "мой URL"
HTTP/1.1 405 Not Allowed
Server: nginx/0.7.62
Date: Tue, 02 Feb 2010 09:22:29 GMT
Content-Type: text/html
Content-Length: 173
Connection: close

<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/0.7.62</center>
</body>
</html>

и никакой ругани в логах

если совсем убрать limit_except то все отлично работает
если убратиться с другого ip то получаю понятный 403 Forbidden и запись в логе

я не правильно использую limit_except ?

--
WBR
Igor Homyakov
System Administrator, Embria
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

limit_except

Игорь Хомяков February 02, 2010 04:42AM

Re: limit_except

Maxim Dounin February 02, 2010 05:16AM

Re: limit_except

Игорь Хомяков February 02, 2010 05:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready