# Combination Auth and IP allow

**URL:** <https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461>\
**Category:** NGINX\
**Created:** [April 7, 2011, 4:17am UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461 "2011-04-07T04:17:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [April 7, 2011, 4:17am UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461/1 "2011-04-07T04:17:56Z")

</div>

Hi,

i need complex configuration “vhost” allow for internal IP (10.x.x.x)  
without http auth or any other IP with http auth.

how to make it?

Posted at Nginx Forum:

> **[Combination Auth and IP allow](https://forum.nginx.org/read.php?2,188978,188978#msg-188978)**
>
> Hi, i need complex configuration "vhost" allow for internal IP (10.x.x.x) without http auth or any other IP with http auth. how to make it?

---

<div class="post-metadata">

**Author:** ![vrtak-cz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/439d5e/32.png) [@vrtak-cz](https://www.ruby-forum.com/u/vrtak-cz)\
**Post date:** [April 7, 2011, 6:37am UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461/2 "2011-04-07T06:37:18Z")

</div>

On Wed, Apr 06, 2011 at 10:17:22PM -0400, vrtak-cz wrote:

> Hi,
> 
> i need complex configuration “vhost” allow for internal IP (10.x.x.x)  
> without http auth or any other IP with http auth.
> 
> how to make it?

allow 10.x.x.x;  
deny all;  
auth\_basic …  
satisfy any;

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![vrtak-cz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/439d5e/32.png) [@vrtak-cz](https://www.ruby-forum.com/u/vrtak-cz)\
**Post date:** [April 7, 2011, 6:42am UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461/3 "2011-04-07T06:42:14Z")

</div>

no this is not solve my problem… i need allow access from local  
network (10.x.x.x) WITHOUT http auth and allow access from other IPs  
WITH http auth

Posted at Nginx Forum:

> **[Re: Combination Auth and IP allow](https://forum.nginx.org/read.php?2,188978,188999#msg-188999)**
>
> Hi, i need complex configuration "vhost" allow for internal IP (10.x.x.x) without http auth or any other IP with http auth. how to make it?

---

<div class="post-metadata">

**Author:** ![vrtak-cz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/439d5e/32.png) [@vrtak-cz](https://www.ruby-forum.com/u/vrtak-cz)\
**Post date:** [April 7, 2011, 6:43am UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461/4 "2011-04-07T06:43:28Z")

</div>

On Thu, Apr 07, 2011 at 12:41:29AM -0400, vrtak-cz wrote:

> no this is not solve my problem… i need allow access from local  
> network (10.x.x.x) WITHOUT http auth and allow access from other IPs  
> WITH http auth

The key directive is “satisfy any|all”.

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![vrtak-cz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/439d5e/32.png) [@vrtak-cz](https://www.ruby-forum.com/u/vrtak-cz)\
**Post date:** [April 7, 2011, 4:37pm UTC](https://www.ruby-forum.com/t/combination-auth-and-ip-allow/205461/5 "2011-04-07T16:37:42Z")

</div>

yaj thanx

Posted at Nginx Forum:

> **[Re: Combination Auth and IP allow](https://forum.nginx.org/read.php?2,188978,189127#msg-189127)**
>
> Hi, i need complex configuration "vhost" allow for internal IP (10.x.x.x) without http auth or any other IP with http auth. how to make it?
