哪些 Apache 模块可以安全禁用?

Gai*_*aia 12 apache-2.2

每个 Apache 进程使用大约 70MB 的私有/rss 内存,所以我想稍微调整一下。服务器仅运行 Magento 和 Wordpress。PHP 作为 fcgid 运行。

您认为禁用哪些模块是安全的?

加载模块:

core_module(静态)

mpm_prefork_module(静态)

http_module(静态)

so_module(静态)

auth_basic_module(共享)

auth_digest_module(共享)

authn_file_module(共享)

authn_alias_module(共享)

authn_anon_module(共享)

authn_dbm_module(共享)

authn_default_module(共享)

authz_host_module(共享)

authz_user_module(共享)

authz_owner_module(共享)

authz_groupfile_module(共享)

authz_dbm_module(共享)

authz_default_module(共享)

ldap_module(共享)

authnz_ldap_module(共享)

include_module(共享)

log_config_module(共享)

logio_module(共享)

env_module(共享)

ext_filter_module(共享)

mime_magic_module(共享)

expires_module(共享)

deflate_module(共享)

headers_module(共享)

usertrack_module(共享)

setenvif_module(共享)

mime_module(共享)

dav_module(共享)

status_module(共享)

autoindex_module(共享)

info_module(共享)

dav_fs_module(共享)

vhost_alias_module(共享)

协商模块(共享)

dir_module(共享)

actions_module(共享)

拼写模块(共享)

userdir_module(共享)

alias_module(共享)

替代模块(共享)

rewrite_module(共享)

proxy_module(共享)

proxy_balancer_module(共享)

proxy_ftp_module(共享)

proxy_http_module(共享)

proxy_ajp_module(共享)

proxy_connect_module(共享)

cache_module(共享)

suexec_module(共享)

disk_cache_module(共享)

cgi_module(共享)

version_module(共享)

sed_module(共享)

security2_module(共享)

unique_id_module(共享)

fcgid_module(共享)

evasive20_module(共享)

perl_module(共享)

php5_module(共享)

ssl_module(共享)

dav_svn_module(共享)

authz_svn_module(共享)

dot*_*hen 7

这是一个网页,其中详细介绍了可以安全删除哪些 Apache 模块。他考虑了最常见的用例,但您应该始终在事后检查并重新启用您需要的

这是作者启用的模块列表:

core_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
mpm_event_module (static)
http_module (static)
so_module (static)
auth_basic_module (shared)
authn_file_module (shared)
authz_host_module (shared)
authz_user_module (shared)
expires_module (shared)
deflate_module (shared)
headers_module (shared)
dir_module (shared)
mime_module (shared)
setenvif_module (shared)
rewrite_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
Run Code Online (Sandbox Code Playgroud)

该页面包含 CentOS 和 Ubuntu 服务器的详细信息。我强烈建议阅读整个页面,因为它包含有关为什么某些软件包被保留或被禁用的详细信息,以及提示。您的用例可能与作者的用例不完全相同,因此请务必谨慎和适当的判断。并测试!