Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When presented with the Windows forms based authentication after entering the users credentials I am prompted again for a username and password. This just keeps prompting you, I see no errors in the logs that would help. I feel the Microsoft side may be seeing some errors but I do not have access to that server. (hope someone can help)

This I am sure is a common issue, can anyone give me some pointers.

my config

server { listen x.x.x.x:443; server_name;

    # Enable SSL
    ssl                     on;
    ssl_certificate         /etc/nginx/ssl/certs/;
    ssl_certificate_key     /etc/nginx/ssl/private/;
    ssl_session_timeout     5m;

    # Set global proxy settings
    proxy_read_timeout      360;

    proxy_pass_header       Date;
    proxy_pass_header       Server;

    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        Authorization $http_authorization;
    proxy_pass_request_headers on;
    proxy_pass_header       Authorization;

    location / {
    allow all;

    error_log /var/log/nginx/;
    access_log /var/log/nginx/;

    error_page 500 502 503 504  /500.html;
    location = /500.html {
    root  /var/www/errorpages;


share|improve this question

I've wanted to achieve the same thing, and have been researching online as to why this occurs. From my understanding, nginx fails the authentication because it closes the proxied TCP/IP connection after each HTTP requests. Where NTLM requires a single instance TCP/IP connection for multiple HTTP requests for authentication to succeed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.