Explorar o código

add X-Forwarded-Proto $scheme

cxgreat2014 %!s(int64=7) %!d(string=hai) anos
pai
achega
43cbeda9a0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      include/nginx.sh

+ 1 - 0
include/nginx.sh

@@ -72,6 +72,7 @@ proxy_set_header Cookie \$http_cookie;
 proxy_set_header Host \$host;
 proxy_set_header X-Real-IP \$remote_addr;
 proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
+proxy_set_header X-Forwarded-Proto \$scheme;
 EOF
   sed -i "s@/data/wwwroot/default@$wwwroot_dir/default@" $nginx_install_dir/conf/nginx.conf
   sed -i "s@/data/wwwlogs@$wwwlogs_dir@g" $nginx_install_dir/conf/nginx.conf