]> git.kaiwu.me - nginx.git/commitdiff
non cacheable $proxy_host and $proxy_port
authorIgor Sysoev <igor@sysoev.ru>
Tue, 11 Mar 2008 14:10:11 +0000 (14:10 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 11 Mar 2008 14:10:11 +0000 (14:10 +0000)
src/http/modules/ngx_http_proxy_module.c

index 83eeac6474064aaa14701caa3c2ed5306c47efe4..c559d31658eb0f1355c08582c6c4249a3725f697 100644 (file)
@@ -444,10 +444,10 @@ static ngx_str_t  ngx_http_proxy_hide_headers[] = {
 static ngx_http_variable_t  ngx_http_proxy_vars[] = {
 
     { ngx_string("proxy_host"), NULL, ngx_http_proxy_host_variable, 0,
-      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOHASH, 0 },
+      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE|NGX_HTTP_VAR_NOHASH, 0 },
 
     { ngx_string("proxy_port"), NULL, ngx_http_proxy_port_variable, 0,
-      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOHASH, 0 },
+      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE|NGX_HTTP_VAR_NOHASH, 0 },
 
     { ngx_string("proxy_add_x_forwarded_for"), NULL,
       ngx_http_proxy_add_x_forwarded_for_variable, 0, NGX_HTTP_VAR_NOHASH, 0 },