diff --git a/_example/etc/test-nginx.conf b/_example/etc/test-nginx.conf index 1b873c48e..077e65263 100644 --- a/_example/etc/test-nginx.conf +++ b/_example/etc/test-nginx.conf @@ -26,7 +26,7 @@ server { # Keep original hostname fastcgi_param HOST $http_host; # Keep original request (LLNG server will receive /lmauth) - fastcgi_param X_ORIGINAL_URI $request_uri; + fastcgi_param X_ORIGINAL_URI $original_uri; # Improve performances #fastcgi_buffer_size 32k; #fastcgi_buffers 32 32k; @@ -38,7 +38,7 @@ server { #uwsgi_pass_request_body off; #uwsgi_param CONTENT_LENGTH ""; #uwsgi_param HOST $http_host; - #uwsgi_param X_ORIGINAL_URI $request_uri; + #uwsgi_param X_ORIGINAL_URI $original_uri; # Improve performances #uwsgi_buffer_size 32k; #uwsgi_buffers 32 32k; @@ -57,6 +57,7 @@ server { ################################## # CALLING AUTHENTICATION # ################################## + set $original_uri $uri$is_args$args; auth_request /lmauth; auth_request_set $lmremote_user $upstream_http_lm_remote_user; auth_request_set $lmremote_custom $upstream_http_lm_remote_custom;