Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I check what modules have been added to an nginx installation?

share|improve this question
2  
Another way of saying this is "how can I see which flags Nginx was compiled with?" Just wanted to add that to increase searchability. – Nathan Long Feb 20 '12 at 17:37

2 Answers

nginx -V will list all the configured modules. There is no explicit enable/load command.

share|improve this answer
thanks very much – Nisanio Jan 18 '11 at 11:37
It was helpfull indeed. – Saif Bechan Dec 5 '11 at 17:35
1  
Note for noobs: If not logged in as root user, the command would be sudo nginx -V – its_me Feb 8 at 4:08

Diff-able one-liner:

2>&1 nginx -V | tr -- - '\n' | grep _module

Convenient for comparing two environments:

lsmodn="2>&1 nginx -V | tr -- - '\n' | grep _module"
diff -y <(ssh www-prd eval $lsmodn) <(ssh www-qa eval $lsmodn)
share|improve this answer
2>&1 nginx -V | tr -- - '\n' | grep _module command is totally wrong as it lists without-* options as installed! – Roman Newaza Mar 28 at 9:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.