Skip to content

Instantly share code, notes, and snippets.

@v1talii-dev
Created June 30, 2018 13:32
Show Gist options
  • Save v1talii-dev/f7dbe38718046a7b89e00d6b09b2833b to your computer and use it in GitHub Desktop.
Save v1talii-dev/f7dbe38718046a7b89e00d6b09b2833b to your computer and use it in GitHub Desktop.
Nginx: proxy authorization header to apache

Проксирование заголовка HTTP_AUTHORIZATION в Apache

  • Измените конфигурацию nginx.conf
    location / {
        # some code ...
        proxy_pass_request_headers on;
        proxy_set_header HTTP_AUTHORIZATION $http_authorization;
    }
    
  • Перезапустите nginx:
    service nginx restart
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment