我正在尝试找出运行 Magento 真正需要哪些 Apache 模块。在所有这些已加载的模块中,有没有一种简单的方法可以找出我需要哪些模块?
该服务器正在使用以下模块(据我所知):
rewrites
deflate
log
header
ssl
auth
vhost
expires
mime
dir
alias
现在我们已经加载了所有这些:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (static)
authn_file_module (shared)
authn_core_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_core_module (shared)
access_compat_module (shared)
auth_basic_module (shared)
socache_shmcb_module (shared)
buffer_module (shared)
reqtimeout_module (shared)
ext_filter_module (shared)
request_module (shared)
include_module (shared)
filter_module (shared)
substitute_module (shared)
sed_module (shared)
deflate_module (shared)
mime_module (shared)
log_config_module (shared)
env_module (shared)
mime_magic_module (shared)
expires_module (shared)
headers_module (shared)
unique_id_module (shared)
setenvif_module (shared)
version_module (shared)
session_module (shared)
session_cookie_module (shared)
session_crypto_module (shared)
ssl_module (shared)
unixd_module (shared)
autoindex_module (shared)
info_module (shared)
cgi_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
userdir_module (shared)
alias_module (shared)
rewrite_module (shared)
php5_module (shared)
答案1
我建议使用 mod_info 在一个页面上查看完整的 Apache 配置。然后向下滚动服务器信息页面,您将开始看到按模块名称分组的指令。如果某个模块的“当前配置”部分没有任何内容,我很确定这意味着您没有使用它。
但请注意,网站某些目录中的 .htaccess 文件可能使用未在此处列出的模块,因此也请查看这些文件。