Welcome! Log In Create A New Profile

Advanced

Re: not proxy php requests

Yaşar Arabacı
July 23, 2011 01:00AM
What do you mean by getting php request by hackers? Do you get requests for
files with php extension. If so, a simple location directive should have
solve this.

location ~ \.php {
return 404;
}

2011/7/23 mike chen <lists@ruby-forum.com>

> Hi,
>
> I have been searching for a solution for below problem but no luck,
> would greatly appreciate if someone shed some lights on it.
>
> Basically I run a tomcat java app behind the nginx but keep getting php
> requests from hackers, my log is flooded with php requets. Right now,
> the php request would also get proxied to the tomcat, my question is if
> there is any ways to stop that? just having nginx return 444 or
> something. How does everyone handles it?
>
> Thanks
>
> Mike Chen
>
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

not proxy php requests

mike chen July 23, 2011 12:50AM

Re: not proxy php requests

Yaşar Arabacı July 23, 2011 01:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
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