是否有列出所有启用的Apache模块的命令?
要列出Apache加载的模块使用:
apachectl -M
要么:
apachectl -t -D DUMP_MODULES
或RHEL,CentOS,Fedora上:
httpd -M
为更多的selectman apachectl
。 所有这些答案都可以通过谷歌searchfind。
您也可以使用服务器信息从远程服务器获取信息
<Location /server-info> SetHandler server-info Order allow,deny Allow from 127.0.0.1 xxx.xxx.xxx.xxx </Location>
您可以在http://your.host.example.com/server-info?list上获取所有已启用的Apache模块的列表
您需要启用信息模块:
sudo a2enmod info.load sudo a2enmod info.conf sudo service apache2 restart
重启后:
http://localhost/server-info
将提供很长的模块列表和configuration信息。
要从远程服务器查看,可以在/etc/apache2/mods-available/info.conf中更改“Requires”选项,以允许远程服务器查看信息。