Re: proxy_redirect ?

chipitsine gmail.com
2 14:48:43 MSD 2010


,   ,     ?back=....
  auth.kontur.ru   , https

2  2010. 16:46  Igor Sysoev <igor  sysoev.ru> :
> On Mon, Aug 02, 2010 at 04:36:05PM +0600,   wrote:
>
>>  !
>>
>>    
>>
>>   ---(https)---->nginx---(http   8066)--->backend
>>
>>       
>>
>> Location: https://auth.kontur.ru/Authenticate.aspx?back=http%3a%2f%2fr66-extern.kontur.ru%3a8066%2fLogin.aspx
>>
>>  ,    8066   http.     
>>
>> Location: https://auth.kontur.ru/Authenticate.aspx?back=https%3a%2f%2fr66-extern.kontur.ru%2fLogin.aspx
>>
>>    :
>>
>> ------------------------------------------------------------------------------------------
>> worker_processes 1;
>>
>> error_log logs/error.log notice;
>>
>> events {
>>   worker_connections 2048;
>> }
>>
>>
>> http {
>>   server_tokens off;
>>   include    mime.types;
>>   default_type application/octet-stream;
>>
>>   access_log logs/access.log combined;
>>
>>   sendfile    on;
>>   keepalive_timeout 65;
>>
>>   server {
>>     listen    443 default backlog=1024 ssl;
>>     server_name localhost;
>>
>>     ssl         on;
>>     ssl_certificate   cert.pem;
>>     ssl_certificate_key key.pem;
>>
>>     ssl_session_timeout 5m;
>>
>>     ssl_protocols SSLv2 SSLv3 TLSv1;
>>     ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
>>     ssl_prefer_server_ciphers  on;
>>
>>     location / {
>>       proxy_pass http://vm-keweb5:8066;
>>       proxy_cache off;
>>       proxy_connect_timeout 500;
>>       proxy_send_timeout 500;
>>       proxy_read_timeout 500;
>>       proxy_redirect
>> https://auth.kontur.ru/Authenticate.aspx?back=http%3a%2f%2fr66-extern.kontur.ru%3a8066%2fLogin.aspx
>> https://auth.kontur.ru/Authenticate.aspx?back=https%3a%2f%2fr66-extern.kontur.ru%2fLogin.aspx;
>>     }
>>   }
>>
>> }
>> ---------------------------------------------------------------
>>
>>    (   http),    . 
>>    ?     ?
>
>       proxy_redirect
> - https://auth.kontur.ru/...
> + http://auth.kontur.ru/...
> https://auth.kontur.ru/...
>
>
> --
>  
> http://sysoev.ru
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru  nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>


nginx-ru