Find loaded modules in Apache 2.x


I was trying to figure out how to find the loaded modules in Apache and came across this nice command.

httpd -M

Used like:

\$ httpd -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
authn_file_module (shared)
authn_default_module (shared)

......

rewrite_module (shared)
php5_module (shared)
extract_forwarded_module (shared)
geoip_module (shared)
Syntax OK