Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am having a few issues with an nginx server. I have a site setup that keeps requesting authentication when accessed from IE but in firefox and safari the site is fine no request for authentication.

Reading around the web I can see that it could be the gzip that may be causing errors, but the other sites are working without issue.

Here is the config:

user  sysadmin sysadmin;

worker_processes 8;

error_log logs/error.log debug;

events { worker_connections 1024; }

http { passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9; passenger_ruby /usr/bin/ruby1.8;

include mime.types;
default_type application/octet-stream;

client_header_timeout  3m;
client_body_timeout    3m;
client_max_body_size   5m;
send_timeout           3m;

client_header_buffer_size    1k;
large_client_header_buffers  4 4k;

gzip on;
gzip_min_length  1100;
gzip_buffers     4 8k;
gzip_types       text/plain;

output_buffers   1 32k;
postpone_output  1460;

sendfile         on;
tcp_nopush       on;

tcp_nodelay      on; 
keepalive_timeout  75 20;

server {
    listen       80;
    server_name  .reg-power.com .reg-power.co.uk .reg-power.eu .reg-power.eu.com .reg-power.net .reg-power.org .reg-power.org.uk .reg-power.uk.com .regegen.eu .regpower.co.uk .regpower.eu .regpower.eu.com .regpower.net .regpower.org .regpower.org.uk .regpower.uk.com .renegen.com .renegen.eu .renewableenergygeneration.co.uk .renewableenergygeneration.com reg.rails1.flowhost.co.uk;
    root /home/sysadmin/reg/current/public;
    passenger_enabled on;
    rails_env production;
index index.html;
}

server {
    listen       80;
    server_name media.reg-power.com; 
    root /home/sysadmin/admin/current/public;
    index index.html;
}

server {
    listen       80;
    server_name  admin.reg-power.com admin.rails1.flowhost.co.uk;
    root /home/sysadmin/admin/current/public;
    passenger_enabled on;
    rails_env production;
index index.html;
} 

server {
    listen       80;
    server_name  .livingfuels.co.uk livingfuels.rails1.flowhost.co.uk;
    root /home/sysadmin/livingfuels/current/public;
    passenger_enabled on;
    rails_env production;
index index.html;
} 

server {
    listen       80;
    server_name  .regbiopower.com .regbiopower.co.uk regbiopower.rails1.flowhost.co.uk;
    root /home/sysadmin/regbiopower/current/public;
    passenger_enabled on;
    rails_env production;
index index.html;
}

server {
    listen 80;
server_name .clpwindprojects.co.uk clp.rails1.flowhost.co.uk;
    access_log  /home/sysadmin/clp/logs/access.log;

location / {
    root /home/sysadmin/clp;
    index  index.php;

       if (-f $request_filename) {
            expires 30d;
    break;
    }

       if (!-e $request_filename) {
            rewrite ^(.+)$ /index.php?q=$1 last;
    }
}

location ~ .php$ {
    fastcgi_pass   127.0.0.1:49232; #this must point to the socket spawn_fcgi is running on.
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME    /home/sysadmin/clp$fastcgi_script_name;  # same path as above

    fastcgi_param  QUERY_STRING       $query_string;
    fastcgi_param  REQUEST_METHOD     $request_method;
    fastcgi_param  CONTENT_TYPE       $content_type;
    fastcgi_param  CONTENT_LENGTH     $content_length;

    fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
    fastcgi_param  REQUEST_URI        $request_uri;
    fastcgi_param  DOCUMENT_URI       $document_uri;
    fastcgi_param  DOCUMENT_ROOT      /home/sysadmin/clp;
    fastcgi_param  SERVER_PROTOCOL    $server_protocol;

    fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
    fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

    fastcgi_param  REMOTE_ADDR        $remote_addr;
    fastcgi_param  REMOTE_PORT        $remote_port;
    fastcgi_param  SERVER_ADDR        $server_addr;
    fastcgi_param  SERVER_PORT        $server_port;
    fastcgi_param  SERVER_NAME        $server_name;
   }
}

}

As you can see there is no reference to a http authentication

share|improve this question
    
Did you see the logs and check if the IE clients are actually reaching your server? Also, I'd try with gzip_disable "MSIE [1-6]\."; just to be sure. –  HD. Apr 30 '10 at 17:52
    
The request are making it to the server as I have checked the access logs. I have also tried the gzip_disable command, but with no luck. It is not just IE6 that is kicking the authentication box. We also have the problem with IE7 –  James MacLeod May 4 '10 at 9:27

Your Answer

 
discard

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