# Access restriction to proxypass directive

**URL:** <https://www.ruby-forum.com/t/access-restriction-to-proxypass-directive/208250>\
**Category:** NGINX\
**Created:** [June 13, 2011, 1:13pm UTC](https://www.ruby-forum.com/t/access-restriction-to-proxypass-directive/208250 "2011-06-13T13:13:33Z")\
**Posts on this page:** 1\
**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:** [June 13, 2011, 1:13pm UTC](https://www.ruby-forum.com/t/access-restriction-to-proxypass-directive/208250/1 "2011-06-13T13:13:33Z")

</div>

Hi all,  
i’m using a reverse proxy configuration for two server on the  
localhost, with different port.

Now i want to restrict the access of the public access of one  
application of apache (phpmyadmin) to only some ip.  
The htaccess of course do not work, because the ip is always from server  
local, how to adopt the same idea of htaccess, to deny all?

Not satisfy that it is too far form what i want (no authentication) and  
not limit\_except that it is the inverse of what i want.

Thanks
