0
votes
1answer
90 views

How to disable nginx basic_auth for one location but enable it for the rest of the site

I'm trying to get basic_auth disabled for a specific directory (/api/), but still have basic auth for the rest of the site I'm working with. The following is my nginx.conf: server { # base ...
2
votes
1answer
265 views

nginx: understanding the purpose of auth_http (IMAP proxy)

I would like to send IMAP client requests to an IMAP back-end via an nginx proxy. According to the the mail_auth_http module, a directive auth_http has to be used in order to authenticate the clients. ...
0
votes
1answer
460 views

make nginx not log “no user/password was provided for basic authentication” in error logs

I've added password protection to a lot of my domain via nginx by adding: auth_basic "Restricted"; auth_basic_user_file /usr/ssl/htpasswd; to the nginx vhosts. I log all errors ...
2
votes
1answer
99 views

Sharing authentication data between servers in nginx

I got an http server that uses the ports 9200 and 9292 (for logstash). Since the server doesn't support authentication, I'd like to set an nginx reverse proxy to handle the authentication. This is ...
0
votes
0answers
166 views

Nginx transparent authentication proxy for jasper

I have a jasper reporting server. It would like to make my own authentication . Jasper has possibility to integrate into iframe but unfortunately logging in is using GET parameters, which i would not ...
0
votes
0answers
244 views

Issue with Nginx, http authentication and dynamic IP address

I am trying to get Nginx as a reverse proxy to authenticate users performing inbound http requests. My ISP provides me with a dynamic IP. I am not sure how to configure my ADSL router (NAT rules). ...
1
vote
2answers
100 views

Issues with nginx basic_auth exemption

I'm trying to exempt a location from basic_auth whereas the rest of the site does require it. Reading up on it my config should work but for some reason it still returns 401 for /asd/qwe/. server { ...
0
votes
1answer
141 views

Nginx auth only for given location

I'm using Nginx as a reverse proxy for a python WSGI web-app. It looks something like that: location / { #auth_basic "Administrator Login"; #auth_basic_user_file ...
1
vote
1answer
2k views

nginx webdav server with auth request

My nginx.conf: location ~ ^/api/(.*)$ { alias /home/username/apidav/$remote_user/$1; client_body_temp_path /var/www/path/; client_max_body_size 50m; dav_methods ...
0
votes
1answer
395 views

Reject Nginx request with no authentication in general

Is it possible to reject all nginx request, which don't send basic authentication data with them? I have requests like this: xxx.xxx.xxx.xxx - - [24/Oct/2012:10:32:12 +0200] "POST /path HTTP/1.1" ...
5
votes
2answers
1k views

Nginx with PAM authentication through pam_script

Have anyone set up such a configuration? It's not working for me. I've installed nginx-extras on Ubuntu 12.04 (it's built with PAM module), and added to site config: location ^~ /restricted_place/ { ...
1
vote
1answer
768 views

how to securely authenticate users with nginx but not auth_basic?

I want to find a secure but simple method for authenticating users in an Nginx environment. I have succeeded in figuring out the auth_basic mod but that does not meet my needs. I specifically want ...
0
votes
2answers
424 views

Login to Drupal fails with Nginx and proxy_pass, but works when accessing Drupal directly

We need to proxy pass an url in which my.domain.com need to get drupal.apps.server.com. We configured rewrite and is working fine. Then we configured proxypass and while accessing my.domain.com we ...
1
vote
0answers
302 views

How to specify multiple root certificates for nginx client certificate verification?

For a project as part of the European Grid Infrastructure (EGI) we need SSL client certificate verification for a service running on nginx. As there are several root CAs allowed within EGI, we need ...
0
votes
1answer
1k views

Can I customize authentication with nginx?

I have a private network with many servers and web based services running on it. There is no application level authentication. I would like to expose many of the servers to the internet, but I want ...
0
votes
1answer
234 views

Using nginx and htpasswd, redirect user

Upon my server, I am running Webalizer on a few of my client's websites (and associated log files of access). Now this process is fine, and the log files are generated correctly and stored. What I am ...
0
votes
1answer
410 views

unable to correctly configure nginx with HTTP auth on a sub-directory for uWSGI

I have an nginx.conf that looks something like this: server { server_name subdomain.example.com; listen 443 ssl; ssl_certificate /srv/ssl/something.crt; ssl_certificate_key ...
3
votes
1answer
3k views

Nginx - basic http authentication on PHP-script

I added a PHP-Script that serves as "cgi-bin", Configuration: location ~^/cgi-bin/.*\.(cgi|pl|py|rb) { gzip off; fastcgi_pass 127.0.0.1:9000; fastcgi_index cgi-bin.php; ...
4
votes
1answer
3k views

How to use nginx PAM module?

I would like to use nginx PAM module to authenticate a site with existing users on a FreeBSD system. I tried to use pam_unix.so, but no luck. It's just not let me in with my usr/psw pair. :( nginx ...
1
vote
2answers
2k views

Setting REMOTE_USER for Trac in Gunicorn behind Nginx

I want to run Trac in Gunicorn, behind Nginx. Nginx handles user authentication via LDAP (which works), but I can't get the REMOTE_USER passed to Trac. For uWSGI I would configure Nginx like this ...
2
votes
1answer
1k views

Authentication with specific subdomains

Basically I'm trying to enable the authentication module when accessing to a specific part of a subdomain, which are dev.domain.com and pma.domain.com, they both must have the authentication module ...
1
vote
1answer
141 views

Unrestricted access to a single file + FastCGI with basic_auth for whole domain in nginx

What's the easiest way to restrict access to all files except one, where whole domain is served via FastCGI? The problem occurring when below conf is used, is that I cannot access /dir (I'm asked for ...
2
votes
1answer
1k views

nginx pass REMOTE_USER to apache2

I am running an apache2 instance behind an nginx reverse-proxy, with nginx performing basic authentication and apache2 serving up Nagios cgi scripts. I am able to send the authenticated user from ...
0
votes
1answer
526 views

NGINX ignores Auth Basic?

I have configured nginx to password protect a directory using auth_basic. The password prompt comes up and the login works fine. However... if I refuse to type in my credentials, and instead hit ...
2
votes
2answers
1k views

Serving protected files using Nginx's X-Accel-Redirect header

I'm trying to serve protected files using this directive in my nginx.conf: location /secure/ { internal; alias /home/ldr/webapps/nginx/app/secure/; } I'm passing in paths ...
1
vote
2answers
4k views

Nginx - Reverse proxy to IIS6 with auth

for testing purpose, i've setup a nginx reverse proxy for an IIS6 server, this works OK. But when i try to use "windows authentication" on the IIS6 web site, the browser auth input doesn't get's ...
3
votes
2answers
10k views

service static files under nginx & HTTP-Authentication

I have an app deployed in testing mode on a server. Access to it has been restricted to a select group of users via HTTP-Authentication. That works fine. The problem is that if I serve static files ...