Home >Operation and Maintenance >Nginx >How to remove unused Nginx modules
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!