Forum: NGINX Limit access to files in cgi-bin

Posted by dredfunk@gmail.com (Guest)
on 2012-12-01 16:39
(Received via mailing list)
Hello,

I have a configuration file located at (example)
http://domain.com:82/cgi-bin/xxx.pm that can be accessed by anyone if 
they
know the address/file location. Is there a way to limit access to this
location from outside the server? I mean so no one can access it if they 
go
to that url?

I tried with rewrite but my main server must communicate with this file
located in cgi-bin and when rewrite is enabled the main server can't
communicate with that file either. Please advise.

Thank you!
Posted by Jonathan Matthews (Guest)
on 2012-12-01 16:43
(Received via mailing list)
On 1 December 2012 14:26, dredfunk@gmail.com <dredfunk@gmail.com> wrote:
> communicate with that file either. Please advise.
You could look at http://nginx.org/r/internal or, if that doesn't
quite fit the bill, http://wiki.nginx.org/HttpAccessModule

HTH,
Jonathan
--
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.