如何检查在Apache中启用mod_headers中和指定mod_expires模块 [英] How to check mod_headers and mod_expires modules enabled in apache

查看:197
本文介绍了如何检查在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_headers中和指定mod_expires模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆