Home >Operation and Maintenance >Nginx >How to remove unused Nginx modules

How to remove unused Nginx modules

王林
王林forward
2023-05-16 11:40:122266browse

Remove unused Nginx modules

When compiling and installing, add the following configuration instructions when executing the ./configure method to explicitly delete unused modules:

./configure --without-module1 --without-module2 --without-module3

For example:

./configure --without-http_dav_module --withouthttp_spdy_module

Note: Configuration instructions are provided by the module. Make sure the module you disable does not contain the directives you need to use! Before deciding to disable a module, you should check the Nginx documentation for the list of directives available for each module.

The above is the detailed content of How to remove unused Nginx modules. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete