Hello,
I've recently installed nginx 1.4.5 on a Pogoplug (ARMv5) running Arch Linux ARM.
I reviewed the nginx package build file and notice that "--without-http_limit_req_module" was not specified in the build configuration. Given that (according to the information on http://wiki.nginx.org/Modules), ngx_http_limit_req_module should be in the build I've installed.
However, I cannot seem to see this module in action. I've added the following to my nginx.conf file:
http {
limit_req_zone $binary_remote_addr zone=one:1m rate=10r/m;
limit_req_log_level info;
limit_req_status 503;
# I assumed these settings would let me test the module quickly and easily.
# etc., etc.
After updating the nginx.conf, I restarted nginx. Then I began "testing."
My test consisted of me entering my.site.com (using my actual site name) into my browser. When my index.html page came up, I hit refresh about 20 times in rapid succession. :)
Unfortunately, my index page was served up 20 times, as well.
I would have expected that ngx_http_limit_req_module, and the configuration (listed above), would have caused nginx to throw a 503 pretty quickly, but it never did.
Am I testing this incorrectly?
Or have I missed something in the configuration of ngx_http_limit_req_module?
Or what?
Thanks for your help with this,
steady
------------------------------------------------------------------------------------------
Here's the full build configuration for those curious:
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/bin/nginx \
--pid-path=/run/nginx.pid \
--lock-path=/run/lock/nginx.lock \
--user=http \
--group=http \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=stderr \
--http-client-body-temp-path=/var/lib/nginx/client-body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--with-imap \
--with-imap_ssl_module \
--with-ipv6 \
--with-pcre-jit \
--with-file-aio \
--with-http_dav_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_realip_module \
--with-http_spdy_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_addition_module \
--with-http_degradation_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_secure_link_module \
--with-http_sub_module
I've recently installed nginx 1.4.5 on a Pogoplug (ARMv5) running Arch Linux ARM.
I reviewed the nginx package build file and notice that "--without-http_limit_req_module" was not specified in the build configuration. Given that (according to the information on http://wiki.nginx.org/Modules), ngx_http_limit_req_module should be in the build I've installed.
However, I cannot seem to see this module in action. I've added the following to my nginx.conf file:
http {
limit_req_zone $binary_remote_addr zone=one:1m rate=10r/m;
limit_req_log_level info;
limit_req_status 503;
# I assumed these settings would let me test the module quickly and easily.
# etc., etc.
After updating the nginx.conf, I restarted nginx. Then I began "testing."
My test consisted of me entering my.site.com (using my actual site name) into my browser. When my index.html page came up, I hit refresh about 20 times in rapid succession. :)
Unfortunately, my index page was served up 20 times, as well.
I would have expected that ngx_http_limit_req_module, and the configuration (listed above), would have caused nginx to throw a 503 pretty quickly, but it never did.
Am I testing this incorrectly?
Or have I missed something in the configuration of ngx_http_limit_req_module?
Or what?
Thanks for your help with this,
steady
------------------------------------------------------------------------------------------
Here's the full build configuration for those curious:
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/bin/nginx \
--pid-path=/run/nginx.pid \
--lock-path=/run/lock/nginx.lock \
--user=http \
--group=http \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=stderr \
--http-client-body-temp-path=/var/lib/nginx/client-body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--with-imap \
--with-imap_ssl_module \
--with-ipv6 \
--with-pcre-jit \
--with-file-aio \
--with-http_dav_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_realip_module \
--with-http_spdy_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_addition_module \
--with-http_degradation_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_secure_link_module \
--with-http_sub_module