# CSV File

**URL:** <https://www.ruby-forum.com/t/csv-file/185608>\
**Category:** NGINX\
**Created:** [March 23, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/csv-file/185608 "2010-03-23T14:41:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thefix](https://www.ruby-forum.com/u/thefix)\
**Post date:** [March 23, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/csv-file/185608/1 "2010-03-23T14:41:36Z")

</div>

Hello, I have nginx as reverse proxy to server with IIS. The server  
have files .cvs. When trying to download any file the server asks for my  
username / password but if you put the correct data always reapplies the  
user and password and can not download the file. Their configuration is  
very basic i have hope to improve it little by little.

any suggestions to solve the problem?  
Thanks.

the sites-enabled/default file is:

server {  
listen 80;  
server\_name [www.xxxxxxxx.com](http://www.xxxxxxxx.com);

```
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
            root /var/www/nginx-default;
    }

         location / {
            proxy_pass http://Dir.to.IIS.server;
            include /etc/nginx/conf.d/proxy.conf;
            index index.html index.htm;
    }

```

}

The proxy.conf:

proxy\_redirect off;  
proxy\_set\_header Host $host;  
proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
client\_max\_body\_size 10m;  
client\_body\_buffer\_size 128k;  
proxy\_connect\_timeout 90;  
proxy\_send\_timeout 90;  
proxy\_read\_timeout 90;  
proxy\_buffer\_size 16k;  
proxy\_buffers 32 16k;  
proxy\_busy\_buffers\_size 64k;

the nginx.conf file:

user www-data;  
worker\_processes 1;

error\_log /var/log/nginx/error.log;  
pid /var/run/nginx.pid;

events {  
worker\_connections 1024;  
}

http {  
include /etc/nginx/mime.types;  
default\_type application/octet-stream;

```
access_log /var/log/nginx/access.log;

sendfile on;

keepalive_timeout 65;
tcp_nodelay on;

gzip on;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

```

}

Posted at Nginx Forum:

> **[CSV File](https://forum.nginx.org/read.php?2,66963,66963#msg-66963)**
>
> Hello, I have nginx as reverse proxy to server with IIS. The server have files .cvs. When trying to download any file the server asks for my username / password but if you put the correct data always reapplies the user and password and can not...

---

<div class="post-metadata">

**Author:** ![thefix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thefix](https://www.ruby-forum.com/u/thefix)\
**Post date:** [March 27, 2010, 9:59am UTC](https://www.ruby-forum.com/t/csv-file/185608/2 "2010-03-27T09:59:42Z")

</div>

thefix ha scritto:

> Hello, I have nginx as reverse proxy to server with IIS. The server have files .cvs. When trying to download any file the server asks for my username / password but if you put the correct data always reapplies the user and password and can not download the file. Their configuration is very basic i have hope to improve it little by little.
> 
> any suggestions to solve the problem?

If you are using Integrated Windows Authentication, I suspect that it  
can not be solved.

Integrated Windows Authentication does not work over HTTP Proxy

> **[Integrated Windows Authentication](https://en.wikipedia.org/wiki/Integrated_Windows_Authentication)**
>
> Integrated Windows Authentication (IWA)
> is a term associated with Microsoft products that refers to the SPNEGO, Kerberos, and NTLMSSP authentication protocols with respect to SSPI functionality introduced with Microsoft Windows 2000 and included with later Windows NT-based operating systems. The term is used more commonly for the automatically authenticated connections between Microsoft Internet Information Services, Internet Explorer, and other Active Directory aware applications. IWA is also kn...

[http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/523ae943-5e6a-4200-9103-9808baa00157.mspx?mfr=true](http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/523ae943-5e6a-4200-9103-9808baa00157.mspx?mfr=true)

I have read, however, that it do works using Apache (or some other HTTP  
proxy, I do not remember).

> […]

Regards Manlio
