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]

Re: 405 Not Allowed, post in internal proxy pass





08.11.06, Igor Sysoev <is@xxxxxxxxxxxxx> ():

    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.

 




Copyright © Lexa Software, 1996-2009.