Welcome! Log In Create A New Profile

Advanced

Legitimate access with certificate auth or basic auth

Sven Schwyn
April 17, 2012 07:26AM
Hi

Is there a way to legitimate access to a location (in my case an entire vhost) with certificate auth and - if no certificate is sent - a fallback to basic auth?

On Apache (from where I'm currently migrating) this is done with "FakeBasicAuth" as follows:

SSLVerifyClient require
SSLVerifyDepth 3
SSLCADNRequestFile /path/to/certs.pem
SSLOptions +FakeBasicAuth

<Location />
Allow from all
AuthName 'MySite'
AuthType Basic
AuthUserFile /path/to/htpasswd
Require valid-user
</Location>

Thanks for your hints!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Legitimate access with certificate auth or basic auth

Sven Schwyn April 17, 2012 07:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready