Welcome! Log In Create A New Profile

Advanced

Need to match http://hostname//etc/passwd

Posted by aletorrado 
Need to match http://hostname//etc/passwd
January 24, 2013 12:36PM
Hi, I have a security issue in my software that makes the entire filesystem accessible to public like this: http://hostname//etc/passwd

I have already fixed but while i upgrade i need nginx to block this kind of requests (i'm using it as a reverse proxy). I've tried using:

location ~ ^//
location ~* //
location ~* ^//.*
and so on... none of them worked for me

Anyone knows how to do this? Thanks so much...
Re: Need to match http://hostname//etc/passwd
February 01, 2013 05:15PM
what's your configuration ?

http://xDNS.ro && http://xLiST.ro Powered By nginX
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready