Normalize URI in nginx handler config (#2290)

This commit is contained in:
Maxime Besson 2020-09-03 20:22:17 +02:00
parent 9306674c81
commit 91ebcdde81
1 changed files with 3 additions and 2 deletions

View File

@ -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;