文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Apache Status功能

Apache Status功能

时间:2010-05-24  来源:xiaochuanjiejie

条件:加载mod_status.c模块

目的:web服务的一些信息统计出来,并制作成网页。浏览设置好的网页网址就可以访问并了解到网站的相关信息。

过程: 1.Prefork模式直接打开httpd.conf即可;Worker模式需要打开httpd-info.conf,并在httpd.conf中“#Include conf/extra/httpd-info.conf”去掉注释。 2.具体内容 2.1

# ExtendedStatus controls whether Apache will generate "full" status

# information (ExtendedStatus On) or just basic information (ExtendedStatus

# Off) when the "server-status" handler is called. The default is Off.

#

#ExtendedStatus On //去掉注释

2.2

# Allow remote server configuration reports, with the URL of

# http://servername/server-info (requires that mod_info.c be loaded).

# Change the ".example.com" to match your domain to enable.

# #<Location /server-info> # SetHandler server-info

# Order deny,allow

# Deny from all

# Allow from .example.com

#</Location>


去掉从<Location /server-info>到</Location>部分的注释,然后将
Allow from .example.com一句中的‘.example.com’更改为自己用来访问客户端的主机的ip地址或所在的域名。最好将<Location /server-info>中的 ‘server-info’改成自己定义的名字。
2.3 重启web服务。

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载