Modules needed to reverse proxy

Francis Daly francis at
Thu Sep 14 22:35:10 UTC 2017

On Thu, Sep 07, 2017 at 02:37:24AM +0200, Jose Carlos Sánchez wrote:

Hi there,

> Hi, i need to recompile nginx to include modsecurity module and i want to take advantage of not compiling unnecessary modules. 

> Someone has the list of modules needed to do reverse proxy? 

./configure --help | grep -o -- --without'[^ ]'*

Use all of those except for --without-http (because you want to listen
for incoming http) and --without-http_proxy_module (because you want to
reverse-proxy to an upstream server).

After that, "nginx -t" will tell you if your config needs any other
modules -- for example, if you use "location ~", you might not want to
exclude pcre.

Francis Daly        francis at

More information about the nginx mailing list