Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active July 14, 2021 13:51
Show Gist options
  • Save magnetikonline/6b66bbb3aade707d0a23 to your computer and use it in GitHub Desktop.
Save magnetikonline/6b66bbb3aade707d0a23 to your computer and use it in GitHub Desktop.
Nginx 1.20.1 modules.

Nginx 1.20.1 modules

Optional

--with-cpp_test_module                       ngx_cpp_test_module
--with-google_perftools_module               ngx_google_perftools_module
--with-http_addition_module                  ngx_http_addition_module
--with-http_auth_request_module              ngx_http_auth_request_module
--with-http_dav_module                       ngx_http_dav_module
--with-http_degradation_module               ngx_http_degradation_module
--with-http_flv_module                       ngx_http_flv_module
--with-http_geoip_module                     ngx_http_geoip_module
--with-http_gunzip_module                    ngx_http_gunzip_module
--with-http_gzip_static_module               ngx_http_gzip_static_module
--with-http_image_filter_module              ngx_http_image_filter_module
--with-http_mp4_module                       ngx_http_mp4_module
--with-http_perl_module                      ngx_http_perl_module
--with-http_random_index_module              ngx_http_random_index_module
--with-http_realip_module                    ngx_http_realip_module
--with-http_secure_link_module               ngx_http_secure_link_module
--with-http_slice_module                     ngx_http_slice_module
--with-http_ssl_module                       ngx_http_ssl_module
--with-http_stub_status_module               ngx_http_stub_status_module
--with-http_sub_module                       ngx_http_sub_module
--with-http_v2_module                        ngx_http_v2_module
--with-http_xslt_module                      ngx_http_xslt_module
--with-mail                                  ngx_mail_core_module
--with-mail_ssl_module                       ngx_mail_ssl_module
--with-stream                                ngx_stream_core_module
--with-stream_geoip_module                   ngx_stream_geoip_module
--with-stream_realip_module                  ngx_stream_realip_module
--with-stream_ssl_module                     ngx_stream_ssl_module
--with-stream_ssl_preread_module             ngx_stream_ssl_preread_module

--with-file-aio                              file AIO support
--with-pcre-jit                              build PCRE with JIT compilation support
--with-threads                               thread pool support

Default

--without-http_access_module                 ngx_http_access_module
--without-http_auth_basic_module             ngx_http_auth_basic_module
--without-http_autoindex_module              ngx_http_autoindex_module
--without-http_browser_module                ngx_http_browser_module
--without-http_charset_module                ngx_http_charset_module
--without-http_empty_gif_module              ngx_http_empty_gif_module
--without-http_fastcgi_module                ngx_http_fastcgi_module
--without-http_geo_module                    ngx_http_geo_module
--without-http_grpc_module                   ngx_http_grpc_module
--without-http_gzip_module                   ngx_http_gzip_module
--without-http_limit_conn_module             ngx_http_limit_conn_module
--without-http_limit_req_module              ngx_http_limit_req_module
--without-http_map_module                    ngx_http_map_module
--without-http_memcached_module              ngx_http_memcached_module
--without-http_mirror_module                 ngx_http_mirror_module
--without-http_proxy_module                  ngx_http_proxy_module
--without-http_referer_module                ngx_http_referer_module
--without-http_rewrite_module                ngx_http_rewrite_module
--without-http_scgi_module                   ngx_http_scgi_module
--without-http_split_clients_module          ngx_http_split_clients_module
--without-http_ssi_module                    ngx_http_ssi_module
--without-http_upstream_hash_module          ngx_http_upstream_hash_module
--without-http_upstream_ip_hash_module       ngx_http_upstream_ip_hash_module
--without-http_upstream_keepalive_module     ngx_http_upstream_keepalive_module
--without-http_upstream_least_conn_module    ngx_http_upstream_least_conn_module
--without-http_upstream_random_module        ngx_http_upstream_random_module
--without-http_upstream_zone_module          ngx_http_upstream_zone_module
--without-http_userid_module                 ngx_http_userid_module
--without-http_uwsgi_module                  ngx_http_uwsgi_module


# only with [--with-mail]:
--without-mail_imap_module                   ngx_mail_imap_module
--without-mail_pop3_module                   ngx_mail_pop3_module
--without-mail_smtp_module                   ngx_mail_smtp_module


# only with [--with-stream]:
--without-stream_access_module               ngx_stream_access_module
--without-stream_geo_module                  ngx_stream_geo_module
--without-stream_limit_conn_module           ngx_stream_limit_conn_module
--without-stream_map_module                  ngx_stream_map_module
--without-stream_return_module               ngx_stream_return_module
--without-stream_set_module                  ngx_stream_set_module
--without-stream_split_clients_module        ngx_stream_split_clients_module
--without-stream_upstream_hash_module        ngx_stream_upstream_hash_module
--without-stream_upstream_least_conn_module  ngx_stream_upstream_least_conn_module
--without-stream_upstream_random_module      ngx_stream_upstream_random_module
--without-stream_upstream_zone_module        ngx_stream_upstream_zone_module

Connection processing methods

https://nginx.org/en/docs/events.html

--with-poll_module
--with-select_module
--without-poll_module
--without-select_module

Building list data

Run from the Nginx source root:

$ ./configure --help | \
	grep --extended-regexp "^ +--with.+?(_module( |$)| module$| support$)" | \
	grep --extended-regexp --invert-match "[a-z]=[a-z]" | \
	sed --regexp-extended "s/(dis|en)able //" | \
	sort
@emphazer
Copy link

2 important options are missing
--with-threads
--with-file-aio

i modified it a bit
./configure --help | grep -P "^ +--with-(?!(poll|select))[^=]+(_module( |$)| (module|support)$)" | sed -r 's/((dis|en)able|build) /# /'

./configure --help | grep -P "^ +--without[^=]+(_module( |$)| (module|support)$)" | sed -r 's/((dis|en)able|build) /# /'

@magnetikonline
Copy link
Author

Better late than never @emphazer 😄 - have updated first grep:

grep --extended-regexp "^ +--with.+?(_module( |$)| module$| support$)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment