Skip to content

Instantly share code, notes, and snippets.

@seanconklin
Last active Oct 12, 2020
Embed
What would you like to do?
Apache WordPress WooCommerce SSL VirtualHost required and optional modules
# DEFAULT OFF
#LoadModule mpm_event_module lib/httpd/modules/mod_mpm_event.so
# REQUIRED
LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
# DEFAULT OFF
#LoadModule mpm_worker_module lib/httpd/modules/mod_mpm_worker.so
# DISABLED
#LoadModule authn_file_module lib/httpd/modules/mod_authn_file.so
# DEFAULT OFF
#LoadModule authn_dbm_module lib/httpd/modules/mod_authn_dbm.so
#LoadModule authn_anon_module lib/httpd/modules/mod_authn_anon.so
#LoadModule authn_dbd_module lib/httpd/modules/mod_authn_dbd.so
#LoadModule authn_socache_module lib/httpd/modules/mod_authn_socache.so
# DISABLED
#LoadModule authn_core_module lib/httpd/modules/mod_authn_core.so
# REQUIRED
LoadModule authz_host_module lib/httpd/modules/mod_authz_host.so
# DISABLED
#LoadModule authz_groupfile_module lib/httpd/modules/mod_authz_groupfile.so
#LoadModule authz_user_module lib/httpd/modules/mod_authz_user.so
# DEFAULT OFF
#LoadModule authz_dbm_module lib/httpd/modules/mod_authz_dbm.so
#LoadModule authz_owner_module lib/httpd/modules/mod_authz_owner.so
#LoadModule authz_dbd_module lib/httpd/modules/mod_authz_dbd.so
# REQUIRED
LoadModule authz_core_module lib/httpd/modules/mod_authz_core.so
# DEFAULT OFF
#LoadModule authnz_fcgi_module lib/httpd/modules/mod_authnz_fcgi.so
# REQUIRED
LoadModule access_compat_module lib/httpd/modules/mod_access_compat.so
# DISABLED
#LoadModule auth_basic_module lib/httpd/modules/mod_auth_basic.so
# DEFAULT OFF
#LoadModule auth_form_module lib/httpd/modules/mod_auth_form.so
#LoadModule auth_digest_module lib/httpd/modules/mod_auth_digest.so
#LoadModule allowmethods_module lib/httpd/modules/mod_allowmethods.so
#LoadModule file_cache_module lib/httpd/modules/mod_file_cache.so
#LoadModule cache_module lib/httpd/modules/mod_cache.so
#LoadModule cache_disk_module lib/httpd/modules/mod_cache_disk.so
#LoadModule cache_socache_module lib/httpd/modules/mod_cache_socache.so
# REQUIRED FOR SSL
LoadModule socache_shmcb_module lib/httpd/modules/mod_socache_shmcb.so
# DEFAULT OFF
#LoadModule socache_dbm_module lib/httpd/modules/mod_socache_dbm.so
#LoadModule socache_memcache_module lib/httpd/modules/mod_socache_memcache.so
#LoadModule socache_redis_module lib/httpd/modules/mod_socache_redis.so
#LoadModule watchdog_module lib/httpd/modules/mod_watchdog.so
#LoadModule macro_module lib/httpd/modules/mod_macro.so
#LoadModule dbd_module lib/httpd/modules/mod_dbd.so
#LoadModule dumpio_module lib/httpd/modules/mod_dumpio.so
#LoadModule echo_module lib/httpd/modules/mod_echo.so
#LoadModule buffer_module lib/httpd/modules/mod_buffer.so
#LoadModule data_module lib/httpd/modules/mod_data.so
#LoadModule ratelimit_module lib/httpd/modules/mod_ratelimit.so
# DISABLED
#LoadModule reqtimeout_module lib/httpd/modules/mod_reqtimeout.so
# DEFAULT OFF
#LoadModule ext_filter_module lib/httpd/modules/mod_ext_filter.so
#LoadModule request_module lib/httpd/modules/mod_request.so
#LoadModule include_module lib/httpd/modules/mod_include.so
# DISABLED
#LoadModule filter_module lib/httpd/modules/mod_filter.so
# DEFAULT OFF
#LoadModule reflector_module lib/httpd/modules/mod_reflector.so
#LoadModule substitute_module lib/httpd/modules/mod_substitute.so
#LoadModule sed_module lib/httpd/modules/mod_sed.so
#LoadModule charset_lite_module lib/httpd/modules/mod_charset_lite.so
#LoadModule deflate_module lib/httpd/modules/mod_deflate.so
#LoadModule xml2enc_module lib/httpd/modules/mod_xml2enc.so
#LoadModule proxy_html_module lib/httpd/modules/mod_proxy_html.so
#LoadModule brotli_module lib/httpd/modules/mod_brotli.so
# REQUIRED
LoadModule mime_module lib/httpd/modules/mod_mime.so
LoadModule log_config_module lib/httpd/modules/mod_log_config.so
# DEFAULT OFF
#LoadModule log_debug_module lib/httpd/modules/mod_log_debug.so
#LoadModule log_forensic_module lib/httpd/modules/mod_log_forensic.so
#LoadModule logio_module lib/httpd/modules/mod_logio.so
# DISABLED
#LoadModule env_module lib/httpd/modules/mod_env.so
# DEFAULT OFF
#LoadModule mime_magic_module lib/httpd/modules/mod_mime_magic.so
#LoadModule expires_module lib/httpd/modules/mod_expires.so
# REQUIRED
LoadModule headers_module lib/httpd/modules/mod_headers.so
# DEFAULT OFF
#LoadModule usertrack_module lib/httpd/modules/mod_usertrack.so
#LoadModule unique_id_module lib/httpd/modules/mod_unique_id.so
# REQUIRED
LoadModule setenvif_module lib/httpd/modules/mod_setenvif.so
# DISABLED
#LoadModule version_module lib/httpd/modules/mod_version.so
# DEFAULT OFF
#LoadModule remoteip_module lib/httpd/modules/mod_remoteip.so
#LoadModule proxy_module lib/httpd/modules/mod_proxy.so
#LoadModule proxy_connect_module lib/httpd/modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module lib/httpd/modules/mod_proxy_ftp.so
#LoadModule proxy_http_module lib/httpd/modules/mod_proxy_http.so
#LoadModule proxy_fcgi_module lib/httpd/modules/mod_proxy_fcgi.so
#LoadModule proxy_scgi_module lib/httpd/modules/mod_proxy_scgi.so
#LoadModule proxy_uwsgi_module lib/httpd/modules/mod_proxy_uwsgi.so
#LoadModule proxy_fdpass_module lib/httpd/modules/mod_proxy_fdpass.so
#LoadModule proxy_wstunnel_module lib/httpd/modules/mod_proxy_wstunnel.so
#LoadModule proxy_ajp_module lib/httpd/modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module lib/httpd/modules/mod_proxy_balancer.so
#LoadModule proxy_express_module lib/httpd/modules/mod_proxy_express.so
#LoadModule proxy_hcheck_module lib/httpd/modules/mod_proxy_hcheck.so
#LoadModule session_module lib/httpd/modules/mod_session.so
#LoadModule session_cookie_module lib/httpd/modules/mod_session_cookie.so
#LoadModule session_crypto_module lib/httpd/modules/mod_session_crypto.so
#LoadModule session_dbd_module lib/httpd/modules/mod_session_dbd.so
#LoadModule slotmem_shm_module lib/httpd/modules/mod_slotmem_shm.so
#LoadModule slotmem_plain_module lib/httpd/modules/mod_slotmem_plain.so
# REQUIRED FOR SSL
LoadModule ssl_module lib/httpd/modules/mod_ssl.so
# DEFAULT OFF
#LoadModule dialup_module lib/httpd/modules/mod_dialup.so
#LoadModule http2_module lib/httpd/modules/mod_http2.so
#LoadModule md_module lib/httpd/modules/mod_md.so
#LoadModule lbmethod_byrequests_module lib/httpd/modules/mod_lbmethod_byrequests.so
#LoadModule lbmethod_bytraffic_module lib/httpd/modules/mod_lbmethod_bytraffic.so
#LoadModule lbmethod_bybusyness_module lib/httpd/modules/mod_lbmethod_bybusyness.so
#LoadModule lbmethod_heartbeat_module lib/httpd/modules/mod_lbmethod_heartbeat.so
# REQUIRED
LoadModule unixd_module lib/httpd/modules/mod_unixd.so
# DEFAULT OFF
#LoadModule heartbeat_module lib/httpd/modules/mod_heartbeat.so
#LoadModule heartmonitor_module lib/httpd/modules/mod_heartmonitor.so
#LoadModule dav_module lib/httpd/modules/mod_dav.so
# DISABLED
#LoadModule status_module lib/httpd/modules/mod_status.so
# REQUIRED
LoadModule autoindex_module lib/httpd/modules/mod_autoindex.so
# DEFAULT OFF
#LoadModule asis_module lib/httpd/modules/mod_asis.so
#LoadModule info_module lib/httpd/modules/mod_info.so
#LoadModule suexec_module lib/httpd/modules/mod_suexec.so
<IfModule !mpm_prefork_module>
#LoadModule cgid_module lib/httpd/modules/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
#LoadModule cgi_module lib/httpd/modules/mod_cgi.so
</IfModule>
#LoadModule dav_fs_module lib/httpd/modules/mod_dav_fs.so
#LoadModule dav_lock_module lib/httpd/modules/mod_dav_lock.so
# REQUIRED
LoadModule vhost_alias_module lib/httpd/modules/mod_vhost_alias.so
# DEFAULT OFF
#LoadModule negotiation_module lib/httpd/modules/mod_negotiation.so
# REQUIRED
LoadModule dir_module lib/httpd/modules/mod_dir.so
# DEFAULT OFF
#LoadModule actions_module lib/httpd/modules/mod_actions.so
#LoadModule speling_module lib/httpd/modules/mod_speling.so
#LoadModule userdir_module lib/httpd/modules/mod_userdir.so
# REQUIRED
LoadModule alias_module lib/httpd/modules/mod_alias.so
LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
# REQUIRED FOR PHP
LoadModule php7_module /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment