access lists and auth basic

Kingsley Foreman kingsley at
Fri Jul 6 07:06:45 MSD 2007

Hi guys,

im trying to work out if something is possible while i try to move a server 
from apache to nginx

i currently have a .htaccess file that looks something like this

require valid-user
AuthType Basic
AuthName "Admin Access Only"
AuthUserFile /pwds
Satisfy any
order deny,allow
allow from
allow from
deny from all

Im trying to make it so that if the allow from addresses don't match it will 
then try to use basic Auth instead,
this method works in apache however i can get it to work in nginx, is it 
possible to do it and if so how?

Kingsley Foreman
Technical Leader Content Services / Content Management Group

Internode Systems Pty Ltd

PO Box 284, Rundle Mall 5000
Level 1, 132 Grenfell Street, Adelaide 5000
Phone:  +61 8 8228 2978
Fax:    +61 8 8235 6978

More information about the nginx mailing list