Apache,服务器,安全,教程,文集,资料
的完整版本号,例如:apache/2.0.54 OS:包括操作系统类型,例如:apache/2.0.54(Unix) Full:包括 apache 支持的模块及模块版本号,例如:Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0. 9.7g ServerSignature Off #在页面产生错误时是否出现服务器版本信息。推荐设置为 Off
(4) 持久性连接设置
KeepAlive On #开启持久性连接功能。即当客户端连接到服务器,下载完数据后仍然保持连接状态。
MaxKeepAliveRequests 100 #一个连接服务的最多请求次数。
KeepAliveTimeout 30 #持续连接多长时间,该连接没有再请求数据,则断开该连接。缺省为 15 秒。
别名设置 对于不在 DocumentRoot 指定的目录内的页面,既可以使用符号连接,也可以使用别名。别名的设置如下:
Alias /download/ “/var/www/download/” #访问时可以输入:doc.guandang.net
#对该目录进行访问控制设置 Options Indexes MultiViews AllowOverride AuthConfig Order allow,deny Allow from all
CGI 设置
scrīptAlias /cgi-bin/ “/mnt/software/apache2/cgi-bin/” # 访问时可以:doc.guandang.net 。 但是该目录下的 CGI 脚本文件要加可执行权限!
#设置目录属性 AllowOverride None Options None
Order allow,deny Allow from all
个人主页的设置 (public_html)
UserDir public_html (间用户的主页存储在用户主目录下的 public_html 目录下 URL doc.guandang.net. com/~bearzhang/file.html 将读取 /home/bearzhang/public_html/file.html 文件)
chmod 755 /home/bearzhang #
使其它用户能够读取该文件。
UserDir /var/html (the URL doc.guandang.net 将读取 /var/html/bearzhang/ file.html)
UserDir /var/www/*/docs (the URL doc.guandang.net 将读取 /var/www/be arzhang/docs/file.html)
日志的设置
(1)错误日志的设置 ErrorLog logs/error_log #日志的保存位置 IXDBA.NET 社区论坛 LogLevel warn #日志的级别
显示的格式日下: [Mon Oct 10 15:54:29 2005] [error] [client 192.168.10.22] access to /download/ failed, reason: use r admin not allowed access
(2)访问日志设置
日志的缺省格式有如下几种: LogFormat “%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”" combined LogFormat “%h %l %u %t “%r” %>s %b” common #common 为日志格式名称 LogFormat “%{Referer}i -> %U” referer LogFormat “%{User-agent}i” agent CustomLog logs/access_log common
格式中的各个参数如下:
%h –客户端的 ip 地址或主机名
%l –The 这是由客户端 identd 判断的 RFC 1413 身份,输出中的符号 “-” 表示此处信息无效。
%u –由 HTTP 认证系统得到的访问该网页的客户名。 有认证时才有效, 输出中的符号 “-” 表示此处信息无 效。
%t –服务器完成对请求
apache 配置文件详解 http.conf 中文说明_IT/计算机_专业资料。apache 配置文件详解 http.conf 中文说明 描述APACHE配置文件中文详解2006-08-25 22:59# # 基于 ...
Apache-httpd.conf详解_IT/计算机_专业资料。apahce httpd 详解...http://www.example.com/dir」连到一个目录中时,如果没 有指定网页,Apache ...
Apache 的 httpd.conf 详解(很实用) ServerRoot /usr/local ServerRoot 用于...#ExtendedStatus On Apache 服务器可以通过特殊的 HTTP 请求,来报告自身的运行...
Apache配置文件httpd.conf详解_IT/计算机_专业资料。本文档从以下几个方面对...文章来源:http://www.phphubei.com/thread-111-1-1.html 1.什么是 Apache ...
Apache 的 httpd.conf 详解_IT/计算机_专业资料。Apache 的 httpd.conf 详解...义 KeepAlive On HTTP 1.0 ( , 连接只能作传输一次 HTTP 请求,而 KeepAl...
Apache 的 httpd.conf 详解 说明:如何使得“ 说明:如何使得“/”后的默认文件...当客户访 问目录中一个不存在的对象时,如访问“http://192.168.17.177/...
Apache管理员必备宝典-httpd.conf详解中文版_IT/计算机_专业资料。Apache服务器...#参见<URL:http://httpd.ache.org/doc-2.0/>以取得关于这些指令的详细信息...
Apache的httpd.conf文件配置详解 Apache的基本设置主要交由httpd.conf来设定管理,...其中的 http://www.sina.com.cn/* 也可以是:http://202.106.184.200/*...
Apache配置文件http.conf中文说明_理学_高等教育_教育专区。Apache配置文件http.... apache http.conf详解 6页 免费 Apache HTTP最新官方配置... 6页 免费 ...
httpd.conf配置完美详解_IT/计算机_专业资料。linux httpd.conf配置超强文件详解...网站 http://httpd.apache.org/download.cgi 下载最新版本 的 Apache 源码包...
热门文档