Hello everybody,
Is there any way to use this kind of configuration in nginx ?
Basically , i wan't to allow access to a website only from internal network IP's and for a specific user from htpasswd.
I tried with if ( $remote_user != user_name ) , and limit_except but every time i was getting the 401 code included in the if statement.
<Proxy *>
AuthUserFile /var/htpasswd/htpasswd
AuthType Basic
AuthName "Auth Required"
Satisfy Any
<Limit GET POST>
Order Deny,Allow
Deny from all
Allow from x.x.x.x
Allow from x.x.x.x
Require user user_name
</Limit>
</Proxy>
Is there any way to use this kind of configuration in nginx ?
Basically , i wan't to allow access to a website only from internal network IP's and for a specific user from htpasswd.
I tried with if ( $remote_user != user_name ) , and limit_except but every time i was getting the 401 code included in the if statement.
<Proxy *>
AuthUserFile /var/htpasswd/htpasswd
AuthType Basic
AuthName "Auth Required"
Satisfy Any
<Limit GET POST>
Order Deny,Allow
Deny from all
Allow from x.x.x.x
Allow from x.x.x.x
Require user user_name
</Limit>
</Proxy>