Pita/etherpad-lite — Issue #180: Nginx and Auth Basic
Author: sebiw
Created: 2011-10-14 13:14:38+00:00
State: open

Hi,

Currently I have the following set up: Etherpad Lite (latest tarball) behind nginx (0.7.67) on Debian Squeeze.

Everything works fine so far, but what I am trying to achieve is, that I can password-protect Etherpad Lite with Auth Basic.

This is how my nginx config looks like:

```
location / {
proxy_pass http://127.0.0.1:9200;
proxy_buffering off;
proxy_redirect off;
proxy_set_header Host $host;
}
```
This config IS working.

As soon as I add

```
auth_basic "Restricted";
auth_basic_user_file htpasswd;
```

to this section, I get the login prompt, I can login successfully but afterwards I receive an internal server error (50x).

Any advice is greatly appreciated!

Thank you in advance!

Sebastian