Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.6 under load gives a ton of error 403

Richard Stanway
May 06, 2014 07:10AM
Your config is returning a 403 from any referrer containing "love" any you
have such URLs on your own site according to your log excerpt. I would not
recommend such referrer matching, it's unlikely to help in any case.


On Tue, May 6, 2014 at 12:30 PM, dfumagalli <nginx-forum@nginx.us> wrote:

> This is also what I thought. I have searched the whole nginx etc directory
> for 403 and deny
>
> /etc/nginx# grep -r '403' .
>
> and the results I got are these snippets:
>
> # Deny bad Referers
> if ($http_referer ~*
> (babes|forsale|girl|jewelry|love|nudit|organic|poker|porn|sex|teen)) {
> return 403;
> }
>
> ...
>
> # deny access to .htaccess files, if Apache's document root
> # concurs with nginx's one
> #
> location ~ /\. { access_log off; log_not_found off; deny all; }
>
> # Wordpress uses the robots.txt
> location = /robots.txt { access_log off; log_not_found off; }
> location = /favicon.ico { access_log off; log_not_found off; }
> location ~ ~$ { access_log off; log_not_found off; deny
> all; }
>
> ...
>
> The apps are several, they all follow the "index.php is the controller"
> paradygm.
>
>
> # Make sure files with the following extensions do not get loaded
> by
> nginx because nginx would display the source code, and these files can
> contain PASSWORDS!
> location ~*
>
> \.(engine|inc|ini|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_
> {
> deny all;
> }
>
> location ~ /config.php {
> deny all;
> }
>
>
>
>
> It's not the UFW firewall as well, because the error shows up even with UFW
> disabled. So the potential culprit may be php-fpm or some weird nginx
> option. Here's the master conf file, the others don't specify anything but
> location
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,249857,249863#msg-249863
>
> _______________________________________________
> 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

Nginx 1.6 under load gives a ton of error 403

dfumagalli May 06, 2014 04:10AM

Re: Nginx 1.6 under load gives a ton of error 403

dfumagalli May 06, 2014 04:35AM

Re: Nginx 1.6 under load gives a ton of error 403

Richard Stanway May 06, 2014 05:18AM

Re: Nginx 1.6 under load gives a ton of error 403

dfumagalli May 06, 2014 06:30AM

Re: Nginx 1.6 under load gives a ton of error 403

Richard Stanway May 06, 2014 07:10AM

Re: Nginx 1.6 under load gives a ton of error 403

dfumagalli May 06, 2014 08:26AM

Re: Nginx 1.6 under load gives a ton of error 403

dfumagalli May 08, 2014 04:19AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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