405 Not Allowed, post in internal proxy pass
Oleg I.
admin.4u.server at gmail.com
Wed Nov 8 23:59:51 MSK 2006
08.11.06, Igor Sysoev <is at rambler-co.ru> написал(а):
>
>
> location / {
> if ($request_method = POST) {
> proxy_pass ...;
> }
>
> ...
> }
Да вариант, спасибо!
А как туда добавить это:
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
?
Ставим:
location / {
if ($request_method = POST) {
proxy_pass http://192.168.2.2;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
...
}
Получаем:
2006/11/08 23:56:34 [emerg] 19950#0: directive "proxy_set_header" in
/usr/accel/conf/nginx.conf:87 is not allowed here
--
Best Regards,
Oleg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20061108/6734627c/attachment.html>
More information about the nginx-ru
mailing list