I'm trying to setup an nginx server to allow requests from a single IP and as well internal requests. The reason being that this box could be hit directly, or via a proxy\_pass. I haven't been able to find a way to mix allow AND internal. In an ideal world I'd like to do something like this:

```
   location = /myFile.html {
         # allow to permit proxy_pass from other box
         allow XX.X.X.XX;
         # allow internal requests
         internal;
         # deny everything else
         deny all;
   }

```

I've read through the documentation, and haven't been able to find the right combination of directives to allow for this.