本文介绍了如何检查在Apache中启用mod_headers中和指定mod_expires模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要检查是否启用mod_headers中和指定mod_expires模块或不在我的服务器
I want to check whether mod_headers and mod_expires modules enabled or not in my server
是否有可用的列出使用一些PHP函数阿帕奇启用/禁用模块就像我们列出与 phpinfo()函数的PHP信息的方法; 功能
Is there a way available to list apache enabled/disabled modules using some php function just like we list php information with phpinfo(); function?
推荐答案在Debian的:
user@machine:~$ /usr/sbin/apache2 -l大多数GNU / Linux发行版:
Most GNU/Linux distros:
user@machine:~$ /usr/sbin/httpd -l在Mac OSX上:
user@mymac:~$ httpd -l在Win 7的(64位):
On Win 7 (64-bit):
C:\Users\myuser>"\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe" -l在所有但Windows终端窗口尝试这些命令,将使用CMD来代替。
Try these commands from a terminal window in all but Windows, which will use CMD instead.
更多推荐
如何检查在Apache中启用mod
发布评论