Add custom modules to nginx with custombuild 2.0

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » CustomBuild » CustomBuild 2.0 » Nginx

Add custom modules to nginx with custombuild 2.0Last Modified: Apr 7, 2014, 3:46 pm
If you want to add any extra modules to nginx, they'll most likely need to be compiled in. Any module that needs to be compiled in will have a --add-module type flag which will need to be used. To add this flag, run the following:

cd /usr/local/directadmin/custombuild
mkdir -p custom/nginx
cp -fp configure/nginx/configure.nginx custom/nginx/configure.nginx

Add your --add-module line to the end of the custom/nginx/configure.nginx file, and make sure the \ character exists at the end of all lines except the last one. The \ character tells the line configure line to loop to the next line, making the configure settings easier to read.  Without the \ character to trigger the wrap, the next line becomes a separate command, which is not correct. (see error below). Once set, type:

./build used_configs

to ensure your custom configure.nginx file is being used.  Then type:

./build nginx

A common error people run into looks like this:

/usr/local/directadmin/custombuild/custom/nginx/configure.nginx: line 32: --add-module: command not found

which simply means that the \ character was not correctly added on the line before --add-module.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST