Welcome! Log In Create A New Profile

Advanced

Request processing rate and reverse proxy

All files from this thread

File Name File Size   Posted by Date  
nginx.conf 705 bytes open | download Guillaume Charhon 02/29/2016 Read message
default.conf 411 bytes open | download Guillaume Charhon 02/29/2016 Read message
Guillaume Charhon
February 29, 2016 11:16AM
Hello,

I have setup nginx 1.9.3 as a reverse proxy [1] with a rate limitation per
server [2]. The rate limitation does not work on this scenario. The rate
request limitation works well if I use nginx as a normal webserver (for
example to serve the default welcome page).

I have attached my configuration files (listen on 80 and redirect to
another webserver running lighttpd).


[1] http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass
[2] http://nginx.org/en/docs/http/ngx_http_limit_req_module.html

Best Regards,
poiuytrez

PS : You can run it in a docker using the following commands if you need:

docker run --rm --name nginx -p 8082:80 -v
/yourdir/nginx.conf:/etc/nginx/nginx.conf:ro -v
/yourdir/default.conf:/etc/nginx/conf.d/default.conf --link backend:backend
nginx

docker run --rm --name backend -p 8081:80 jprjr/lighttpd

Go to http://localhost:8082/ in your web browser.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - nginx.conf (705 bytes)
open | download - default.conf (411 bytes)
Subject Author Posted

Request processing rate and reverse proxy Attachments

Guillaume Charhon February 29, 2016 11:16AM

Re: Request processing rate and reverse proxy

Guillaume Charhon March 02, 2016 05:26AM

Re: Request processing rate and reverse proxy

Maxim Dounin March 02, 2016 07:30AM

Re: Request processing rate and reverse proxy

Guillaume Charhon March 03, 2016 04:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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