Welcome! Log In Create A New Profile

Advanced

414 Request-URI Too Large

Андрей Василишин
June 11, 2015 03:44PM
Всем привет!
Есть такая проблема, задолбали школоддосеры. которы LOIC'ом штурмуют
сайт запросами вида http://site.com/?blahblah, так как аргументы в / не
предусматривается никак обрабатывать, создал конструкцию вида
if ($args) {
return 444;
}

В целом локейшн выглядит так:
location = / {
if ($request_method = POST) {
return 405;
}
if ($args) {
return 444;
}
try_files $uri $uri/ /index.php?q=$uri&$args;
index index.php index.htm index.html;

}

В хроме отрабатывает нормально, в одном ФФ нормально, в другом получаю
сабж, как и в Опере.
Почему так?

# nginx -V
nginx version: nginx/1.2.4
configure arguments: --prefix=/etc/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-debug --with-file-aio --with-http_flv_module
--with-http_geoip_module --with-http_mp4_module
--with-http_realip_module --with-http_secure_link_module
--with-http_stub_status_module --without-http_scgi_module
--without-http_split_clients_module --without-http_ssi_module
--without-http_userid_module --without-http_uwsgi_module

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

414 Request-URI Too Large

Андрей Василишин June 11, 2015 03:44PM

Re: 414 Request-URI Too Large

mva June 11, 2015 03:52PM

Re: 414 Request-URI Too Large

Андрей Василишин June 11, 2015 04:00PM

Re: 414 Request-URI Too Large

mva June 11, 2015 04:12PM

Re: 414 Request-URI Too Large

Андрей Василишин June 11, 2015 04:14PM

Re: 414 Request-URI Too Large

mva June 11, 2015 04:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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