Nginx-ru mailing list archive (nginx-ru@sysoev.ru) 
 
Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
 
Re: proxy_pass + https 
On Sun, 18 Dec 2005, Andrew Sitnikov wrote:
 
версия nginx 0.3.16
location ^~ /aaa/bbb {
           proxy_pass https://host:443  
Это ответа бэкенда или фронтенда ?
 
если в proxy_pass не ставить порт то запрос идет на 80 порт
 
Прилагаемый патч решает две проблемы
1) по умолчанию используется 443 порт.
2) корректно меняется редирект.
Игорь Сысоев
http://sysoev.ru  --- src/http/modules/ngx_http_proxy_module.c    Wed Dec  7 22:11:17 2005
+++ src/http/modules/ngx_http_proxy_module.c    Sun Dec 18 16:44:46 2005
@@ -1926,6 +1926,7 @@
 
     size_t                       add;
     ngx_str_t                   *value, *url;
+    ngx_uint_t                   port;
     ngx_inet_upstream_t          inet_upstream;
     ngx_http_core_loc_conf_t    *clcf;
 #if (NGX_HTTP_SSL)
@@ -1945,12 +1946,14 @@
 
     if (ngx_strncasecmp(url->data, "http://" https://" http://" http://"