httpd.conf�ļ�ע�ͼ�����ָ��
��ʼ֮ǰ��
�������ú�д�ļ���ʱע��:�����������ļ�����"/"��ͷ,�����������þ���Ŀ¼��
���������������ļ�������"/"��ͷ,��:"logs/foo.log",
��������ǰ��������Ŀ¼��"/usr/local/apache/",
������ô�������ͻ���Ϊ����log�ļ�������:"/usr/local/apache/logs/foo.log"
����ע��:���������ù��������е��ļ����ж�Ҫ��б��"/",�����÷�б��"""��
������:�� "c:/apache" ������ "c:apache" , ������DOS��һ��.
Apache������������ָ�����ֳ��������Լ��еIJ���
1. ����Apache���������������й����еĻ�������.
2. ��������������Ĭ�Ϸ���������ʱ����ϸ�ӿڲ���.
3. ��������������,ʹ����ͬһ��Apache�������Ͽ����ɲ�ͬIP��ַ����ͬ��������web���� (��:һ̨�����ϵķ������ɱ�����Ϊ�кܶ���IP��ַ���ܶ���������������������)
----------------------------------------
��һ���֣��������趨
# ���÷������ĵ�������ʽ:����������standalone�������ǽ��ɻ��������ŷ�����inetd��������
# ȱʡֵ��ʹ�ö���������standalone����
ServerType standalone
# ���÷�����Ŀ¼���������ŷ������������ļ��������ļ�����¼�ļ���Ŀ¼��
# ע��:��Ŀ¼�����������ټ�б��"/" ��
ServerRoot "C:/Apache"
# ������������ʱ�����Ѹ����� httpd �ij�����(process id)��������
# log/httpd.pid �ļ��������ļ����ƿ������� PidFile ָ�����Ըı�.
PidFile logs/httpd.pid
# ����Apache������ִ�г����ļ�¼�ļ���
ScoreBoardFile logs/apache_status
# ������������˵�ϲ��,����������httpd.conf�ļ�̫��,�����ҵ���Ҫ�Ķ�����
# ��ô�����Խ����������÷���srm.conf��(��ֻ�м���),Ȼ��������������:
# ��������������,�ڱ��������Ǵ�,���ǿ��Բ�������.
# ȥ����һ��ǰ����"#" , ����srm.conf
#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf
# ���������ͻ��˵������ȴ�ʱ��
# �����ͻ�����300�뻹û�����ϣ����߷�����300�뻹û�д������ݵ��ͻ��ˣ��ͻ��Զ����ߡ�Timeout 300
# �����Ƿ�֧����������.ȱʡ��֧��
KeepAlive On
# ����֧���������ܵ���Ŀ����ĿԽ�����˷ѵ�Ӳ�̿ռ�Խ��, ����ҲԽ�á�
# ����Ϊ0��û�����ơ�
MaxKeepAliveRequests 100
# ���ñ��������������ȴ�ʱ��
# ���������ϵ�ijλʹ������15������û��������������Ҫ������������ʹ���������ܡ�
KeepAliveTimeout 15
# ����ͬʱ�����ӽ�����Ŀ,Ϊ�˰�ȫ,����Ϊ��.
MaxRequestsPerChild 0
# ���÷�����ʹ�ý��̵���Ŀ��
# �����Է���������Ӧ�ٶ�Ϊ��, ��Ŀ̫����������.
ThreadsPerChild 50
# ����ʹ��������Port��IP��ַ���ʷ�����. �����Դ�������
#Listen 3000
#Listen 12.34.56.78:80
# ����Apache������IP��ַ����Ҳ�����ڱ����ϵ�������������IP��ַ.
BindAddress 127.0.0.1
# ��ǰδ����Ԥ������ģ��,����������������Ҫ,������Ҫ������
#LoadModule anon_auth_module modules/ApacheModuleAuthAnon.dll
# ���÷�����������״̬��Ϣ����������Ϊ"On",��������ϸ����Ϣ.
#ExtendedStatus On
-----------------------------------
�ڶ����֡�����ϸ�ӿڲ����趨
# ���÷���������ʹ��ʱ�����Ķ˿ڡ�
Port 80
# ���÷����������ߵ�E-Mail��ַ.
ServerAdmin [email protected]
# �����������������������й̶���IP��ַ��������Ҫ����
ServerName localhost
# ���ô���վ��html�ļ���Ŀ¼
DocumentRoot "C:/Apache/htdocs"
# ����/Ŀ¼��ָ�����˵�����£�
# ����Option��������Ŀ¼������ִ�еIJ�����
# ������������None��ʾֻ������.
# ������������FollowSymLinks����ҳ�����ӵ���
# ������������ExecCGI����ִ��CGI��
# ������������MultiViews��������������������֮���IJ�����
# ������������Indexes��������������Ŀ¼�ĸ�ʽ���б���
# ������������Includes����ʹ��SSI��
# ������Щ���ÿ��Ը�ѡ��All���������κ��£���������MultiViews��
# AllowOverride��
#������������ ��None������ʾ�κ��˶�����������Ŀ¼�µ��ļ�,��������ȡ���ļ���
# ������������FileInfo ���������ļ���ָ̬֮����ʹ��,
# ������������AuthConfig ��������ָ����ʹ�ã�
# ������������Indexes ��������Ŀ¼����ָ֮����ʹ��,
# ������������Limit �������ƴ�ȡ����ָ֮����ʹ��,
# ������������Options ���������ض�Ŀ¼��ɫָ֮����ʹ��.
# ��������������Ϊ All �Ļ������������������е�ָ��.
����ptions FollowSymLinks
����AllowOverride None
# ����������ʾ���ļ���
# �������������� DirectoryIndex index.html index.htm
DirectoryIndex index.html
# ����ÿ��Ŀ¼���ʿ����ļ�������
AccessFileName .htaccess
# ����������������Ҫ��������ҳ��. ȱʡ��ʹ��.
#CacheNegotiatedDocs
# ����ָ���趨 mime ��̬���õ����ڵ�λ��,
# �ļ������������� ServerRoot ��, ���������������ļ�.
TypesConfig conf/mime.types
# �������Ὣ����ѶϢ��¼��һ����¼��ȥ,
# �ļ����ƿ��Խ��� ErrorLog ָ���趨.
# ����Ϊ��ͬ�����������趨��ͬ�Ĵ�����¼
ErrorLog logs/error.log
# �趨��¼���ĸ�ʽ
LogFormat "%h %l %u %t ""%r"" %>s %b" common
.
.
.
# Alias ָ��ʹ�ļ����Դ����� DocumentRoot ֮���ı����ļ�ϵͳ��
# ScriptAlias ָ���� Alias ָ����ͬ, ֻ�����������Ǹ�Ŀ¼����CGI��PHPָ���ļ�
# AddType ָ����ָ����������̬��Ϊ���ļ����ƽ�β���ļ��ĸ��ļ���
Alias /icons/ "C:/Apache/icons/"
Alias /test/ "c:/php/test/"
Alias /admin/ "c:/admin/phpMyAdmin/"
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php3 .php3
Action application/x-httpd-php "/php/php.exe"
# AddIcon, AddIconByEncoding and AddIconByType ��
# �������趨��ʾ��ͬ�ļ���̬��ʹ�õ�ͼʾ�б�������ÿ����
# �����ļ���̬����ʾ�г��ĵ�һ�����ϵ�ͼʾ��
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
# ȱʡ���ļ�ͼʾ
DefaultIcon /icons/unknown.gif
# ������������������״���£���������Apache�����ַ�Ӧ
# 1. �����Զ���(customized)ѶϢ(�ı�)
#ErrorDocument 500 "The server made a boo boo.
# 2. �ص���ij�����ص� URL �Դ��������⣯����
#ErrorDocument 404 /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# 3. �ص���ij���ⲿ�� URL �Դ��������⣯����
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
===========================
########01.��������
# Listen
# �����˿�, ��: Listen 80
# ServerRoot
# Apache ����Ŀ¼, ��: ServerRoot "C:/Program Files/Apache Group/Apache2" (WINDOWS)
# ServerAdmin
# ��������, ��: ServerAdmin [email protected]
# DocumentRoot
# վ����Ŀ¼, ��: DocumentRoot "I:/gi-2288"
# DirectoryIndex
# ����Ŀ¼�����ļ�,
# ��: DirectoryIndex index.php index.php3 index.html index.htm
# ServerName
# ����������/IP��ַ, ��: ServerName gi.2288.org
# DefaultLanguage
# Ϊ����ָ����������Χ�ڵ��ļ��趨ijһ�ض���ȱʡ����
# �: DefaultLanguage MIME-lang, ��: DefaultLanguage zh-CN
# AddDefaultCharset
# ��û�н���ָ���ַ���������������Ӧ�м�����Ĭ���ַ���, Ĭ��ֵ: AddDefaultCharset Off
# ��: AddDefaultCharset utf-8, �: �: AddDefaultCharset On|Off|�ַ���
# AddHandler
# ���ļ���չ�����ض��Ĵ������佨��ӳ��, ��: AddHandler cgi-script .cgi .pl
# �: AddHandler handler-name extension
# AccessFileName
# ���������ļ�, ��: AccessFileName .htaccess
# �����ͻ��˷����ĵ�ʱ�����������˴�Ŀ¼�ķ��������ļ����ܡ�
# ���������������ĵ��ĸ���·���д������б��в��ҵ�һ�����ڵ������ļ���
# Timeout
# ��ʱʱ��, ��: Timeout 300
# TypesConfig
# ָ��mime.types�ļ���λ��, Ĭ��: TypesConfig conf/mime.types
# DefaultType
# DefaultType MIME����,
# ��ʱ�ᷢ���������£��������ᱻҪ���ṩһ���ĵ����������ĵ���������������MIME����ӳ����������
# ����������֪ͨ�ͻ������ĵ����������͡�
# ���Ե�һ��δ֪���ͳ���ʱ������ʹ��DefaultType��
# ��: DefaultType image/gif
# HostnameLookups
# ���öԿͻ���IP��DNS����, �: HostnameLookups on|off|double
# ErrorLog
# ��λ���������Ŵ�����־��λ��, ��: ErrorLog "G:/Apache/dummy-gi.2288.org.80-error_log"
# LogLevel
# ���ƴ�����־�ļ���, Ĭ��ֵ: LogLevel warn
# emerg ���� - ϵͳ��ʹ�á�
# alert ����������ȡ��ʩ��
# crit ����������
# error ����������
# warn ����������
# notice һ����Ҫ������
# info ��ͨ��Ϣ��
# debug ����������Ϣ
# CustomLog
# �趨��־���ļ�����ʽ, Ĭ��: CustomLog logs/access.log common
# ServerTokens
# ���÷�����HTTP��Ӧͷ, Ĭ��: ServerTokens Full
# ServerTokens Prod[uctOnly], �������ᷢ�ͣ�����˵����Server:Apache
# ServerTokens Major, �������ᷢ�ͣ�����˵����Server:Apache/2
# ServerTokens Minor, �������ᷢ�ͣ�����˵����Server:Apache/2.0
# ServerTokens Min[imal], �������ᷢ�ͣ�����˵����Server:Apache/2.0.41
# ServerTokens OS, �������ᷢ�ͣ�����˵����Server: Apache/2.0.41 (Unix)
# ServerTokens Full (or not specified),
# �������ᷢ�ͣ�����˵����Server: Apache/2.0.41 (Unix) PHP/4.2.2 MyMod/1.2
# MaxSpareServers
# ����apache�������������
# �: MaxSpareServers number
# Ĭ��: MaxSpareServers 100
# ��: MaxSpareServers 1000
# MaxKeepAliveRequests
# ����ÿ�����ӵ�����������
# �: MaxKeepAliveRequests number
# Ĭ��ֵ: MaxKeepAliveRequests 100
# ServerSignature
# ���÷���������ҳ����ҳ��, Ĭ��ֵ: ServerSignature Off
# �: ServerSignature On|Off|EMail
# Ӧ��:
# Listen 80
# ServerRoot "C:/Program Files/Apache Group/Apache2"
# ServerAdmin [email protected]
# DocumentRoot "I:/gi-2288"
# DirectoryIndex index.php index.php3 index.html index.htm
# ServerName gi.2288.org
# DefaultLanguage zh-CN
# AddDefaultCharset utf-8
# AddDefaultCharset Off
# AddHandler cgi-script .cgi .pl
# AccessFileName .htaccess
# Timeout 300
# TypesConfig conf/mime.types
# ErrorLog "G:/Apache/dummy-gi.2288.org.80-error_log"
# LogLevel warn
# CustomLog logs/access.log common
# ServerTokens Prod[uctOnly]
# ServerSignature Off
########02. <VirtualHost *:80>����������
# Listen 80
# �趨�����˿�
# NameVirtualHost 192.168.1.2:80
# ���֣��˿��� ��������
# <VirtualHost *:88>
# </VirtualHost>
# ����������
# ServerAdmin [email protected]
# ��ϵ�������õ�����
# DocumentRoot "I:/gi-2288"
# վ����Ŀ¼
# ServerName gi.2288.org
# ����
# ErrorLog "G:/Apache/dummy-gi.2288.org.80-error_log"
# ������־ # ��־��¼�Ǻö�����ע���鿴��־��¼
# ������������������������������������������
# ����Ӧ��:
# Listen 80
# NameVirtualHost 192.168.1.2:80
# <VirtualHost *:88>
# ServerAdmin [email protected]
# DocumentRoot "I:/gi-2288"
# ServerName gi.2288.org
# </VirtualHost>
########03. <Directory> + Alias
# �: <Directory Ŀ¼·��> ... </Directory>
# ��װһ��ָ�ʹ֮���Ծ���ij�����ֵ��ļ�ϵͳĿ¼������Ŀ¼�����á�
# ������Ŀ¼����, ��:
# Alias /document "J:/Document/"
# <Directory "J:/Document/">
# Options FollowSymLinks
# AllowOverride none
# Order allow,deny
# Allow from all
# </Directory>
# ����Ŀ¼����, ��:
# Alias /document "J:/Document/"
# <Directory "J:/Document/">
# Options Indexes
# AllowOverride none
# Order allow,deny
# Allow from all
# </Directory>
# Allow & Deny
# Allow��Denyָ�������������ܾ������ض���������������ַ�ķ��ʣ�
# ͬʱ��Orderָ������Apache����������ָ����˳���� �Ըı���������
# Allow
# �������е�ַ�ķ���, ��: Allow from all
# ֻ�����ض�IP��ַ����Ŀ¼, ��: Allow from 205.252.46.165
# ֻ�����ض�������ַ����Ŀ¼, ��: Allow from www.google.com
# ֻ�����ض�IP �η���, ��: Allow from 10.10.10.0/255.255.0.0
# Deny
# �ܾ����е�ַ����Ŀ¼, ��: Deny from all
# �ܾ��ض���������Ŀ¼, ��: Deny from www.google.com
# �ܾ��ض�IP����Ŀ¼, ��: Deny from 218.15.84.152
# �ܾ�ij��IP�η����ϵ�, ��: Deny from 10.10.10.0/255.255.0.0
# Allow & Deny ����ʹ��
# �ܾ����е�ַ�ķ���, ������ Google �ķ���, ��:
# <Directory "J:/Document/">
# Options FollowSymLinks
# Order Deny, Allow
# Deny from all
# Allow from www.google.com
# </Directory>
# �������е�ַ�ķ���, ���ܾ� Google �ķ���, ��:
# <Directory "J:/Document/">
# Options FollowSymLinks
# Order Deny, Allow
# Deny from www.google.com
# Allow from all
# </Directory>
# Options
# �: Options [+|-]��ѡ�� [[+|-]��ѡ��] ...
# �������ض�Ŀ¼ʹ����Щ����,
# Optionsָ�����������ض�Ŀ¼�н�ʹ����Щ���������ԡ�
# ��ѡ��������ΪNone�������������£����������κζ������ԡ�
# ������Ϊ����ѡ���е�һ����������
# All, ��MultiViews֮�����������ԡ�����Ĭ�����á�
# ExecCGI, ����ִ��CGI�ű�.
# FollowSymLinks, ���������ڴ�Ŀ¼��ʹ�÷������ӡ�
# ע�⣺������������ʹ�÷������ӣ����������ı�����ƥ��<Directory>���öε�·������
# ע�⣺����������λ��<Location>���ö��У��������ûᱻ���ԡ�
# Includes, �����������˰�����
# IncludesNOEXEC,�����������˰�����������#exec������#exec CGI��
# ���Կ��Դ�ScriptAliaseĿ¼ʹ��#include ����CGI�ű���
# Indexes, ����һ��ӳ�䵽Ŀ¼��URL��������
# ����Ŀ¼����û��DirectoryIndex�����磺index.html.zh-cn.gb2312����
# ��ô�������᷵��һ����ʽ������Ŀ¼�б���
# MultiViews,��������Э�̵Ķ�����ͼ��
# SymLinksIfOwnerMatch, ���������ڷ�����������Ŀ��Ŀ¼���ļ�ӵ���߾���ͬ�����û�idʱ��ʹ������
# ע�⣺���������ó�����<Location>���ö��У���ѡ������ԡ�
# AllowOverride
# �: AllowOverride All|None|ָ������ [ָ������] ...
# ˵��: ����������.htaccess�ļ��е�ָ������
# ��������������һ��.htaccess�ļ�����AccessFileNameָ����ʱ��
# ����Ҫ֪���������ļ�����������Щָ���ܸ����ڴ�֮ǰָ���ķ�����Ϣ��
# AllowOverride����<Directory>С���в�����Ч�ġ���<Location>��<Files>С���ж�����Ч�ġ�
# ������ָ������ΪNone����ô.htaccess�ļ�������ȫ���ԡ�
# �����������£��������������������Ŵ��ļ�ϵͳ��ȡ.htaccess�ļ���
# ����ָ������ΪAllʱ�����о���.htaccess �����ĵ�ָ�����������.htaccess�ļ��С�
########4. .htaccess
# ��ʾ:����ʹ�� .htaccess �ļ����ᵼ�·������ܵ��½���
# ���⣬ÿ������һ��ҳ��ʱ������Ҫ��ȡ.htaccess�ļ���
# ���� .htaccess ֧�ֱ��� �������� AllowOverride all, ��:
# Alias /v "J:/pwd/"
# <Directory "J:/pwd/">
# Options Indexes
# AllowOverride all
# Order allow,deny
# Allow from all
# </Directory>
# ��������վ������Щ������Ϣ��ֻϣ��Ϊһ��СȺ�������ʣ�
# �������ܼ�������ȷ��ʹ�û�ֻ�ܷ������������ʵ���Դ��
# ͨ���� <Directory> �λ����Ե���Ŀ¼�������ļ�(.htaccess files)��
# ����ϣ��ʹ�� .htaccess �ļ��� ���������÷���������������Щ�ļ���ʹ����ָ֤�
# ������ AllowOverride ָ�� ָ����Щָ�������Ե���Ŀ¼�������ļ�����Ч��
# �������������������ϵ�Ŀ¼, ������Ҫ����һ�������ļ���
# �����ļ����Է��ڲ��ܱ��������ʵ�λ�ã��Ա��ⱻ���أ�
# ����: G:Apache �����Ŀռ䲻�ܱ��������ʣ�
# ��ô���Կ��ǰ������ļ����� G:Apached Ŀ¼�С�
# Apache���䰲װĿ¼�� bin ��Ŀ¼���ṩ�˽� htpasswd �Ĺ��ߣ�
# �Խ��������ļ�����������ʹ�ã�
# (���л���Apache ��װĿ¼, ��: C:Program FilesApache GroupApache2in)
# ������������: htpasswd -c G:/Apache/passwords E
# (�����ͽ�����һ���û� E, ���尴�Լ���Ҫ�����û�������)
# ���Ż�Ҫ������������, Ȼ��������һ��,��������.
# ������ G:Apache �Ͷ���һ�� passwords �ļ�(û�к���)
# Windows �µĻ����� MD5 ��������.
# Ȼ����Ҫ ����Ȩ��Ŀ¼�ィ��һ�� .htaccess �ļ�,
# .htaccess ���������:
# AuthType Basic
# AuthName "Restricted Files"
# AuthUserFile G:/Apache/passwords
# Require user E
# ��ʾҳ��: http://gi.2288.org:88/v
# �û�: E ����:testhtpasswd
# ע: Ŀ¼�������� AllowOverride all ,���� .htaccess �ļ�������Ч.
########5. Log
# Apache ����־�ļ������ṩ�dz�������Ϣ, ���б�Ҫ�˽���Щ��־
# C:Program FilesApache GroupApache2logs (Windows �е���־�ļ����Ŵ�)
# access.log(������־,�˽��ͻ��������ʵ�����) & error.log(������־)
# �Զ�����־��ʽ
# mod_log_config
# ״̬: Base
# ˵��: ���Է�����������������¼����־
# Ĭ��: CustomLog logs/access.log common
# �Ƽ�����:
# CustomLog logs/access_log "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i""
# LogFormat
# Ĭ��ֵ: LogFormat "%h %l %u %t ""%r"" %>s %b"
# �: LogFormat format|nickname [nickname]
# ˵��: ������־�ļ����ļ�¼��ʽ
# ��: LogFormat "%v %h %l %u %t ""%r"" %>s %b" vhost_common
# CustomLog
# ״̬: Base
# �: CustomLog file|pipe format|nickname [env=[!]environment-variable]
# ˵��: �趨��־���ļ�����ʽ
# ��: CustomLog logs/access_log "%h %l %u %t ""%r"" %>s %b"
# ErrorLog
# �: ErrorLog ����|syslog[:facility]
# Ĭ��ֵ: ErrorLog logs/error_log (Unix) ErrorLog logs/error.log (Windows and OS/2)
# ˵��: ��λ���������Ŵ�����־��λ��
# ��: ErrorLog "G:/Apache/dummy-gi.2288.org.88-error_log"
# CookieLog
# �: CookieLog filename
# ˵��: �趨����cookies����־�ļ���
# �: mod_log_config
# RewriteLog
# �: RewriteLog file-path
# ˵��: ������д������־���ļ���
# �: mod_rewrite
# ��: RewriteLog "/usr/local/var/apache/logs/rewrite.log" (Unix/Linux)
# RewriteLog "G:/Apache/rewrite.log" (Windows)
# һЩ�����ĸ�ʽ��������ʾ��
# ������־��ʽ��CLF��: "%h %l %u %t ""%r"" %>s %b"
# ������������ͨ����־��ʽ: "%v %h %l %u %t ""%r"" %>s %b"
# NCSA��չ/������־��ʽ: "%h %l %u %t ""%r"" %>s %b ""%{Referer}i"" ""%{User-agent}i"""
# Referer��־��ʽ: "%{Referer}i -> %U"
# Agent ��Browser����־��ʽ: "%{User-agent}i"
########6.URL Rewrite
# ע�⣺�������ķ��������ã������б�Ҫ��������Щ�ģ�
# ���磬������ mod_alias �� mod_userdir ʱҪ����[PT]��־��
# ������д .htaccess �����ǵ����������еĹ���
# ��һ���ض��Ĺ�����Ӧ������ȥ����������ȥ���Ա��������⡣
# ��д�
# RewriteEngine on
# RewriteRule ^/$ /www/ [R]
# һ����д����
# ��дҳ�棺http://gi.2288.org:88/modules/news/index.php��
# RewriteRule /modules/news/index.htm$ /modules/news/index.php
# ����ҳ��: http://gi.2288.org:88/modules/news/index.htm
# ��дҳ�棺 http://gi.2288.org:88/modules/news/index.php?storytopic=2
# RewriteRule /modules/news/topic_(.*).htm$ /modules/news/index.php?storytopic=$1
# ����ҳ��: http://gi.2288.org:88/modules/news/topic_2.htm
# ��дҳ�棺http://gi.2288.org:88/index.php?storytopic=2start=10
# RewriteRule /topic(.*)-(.*).htm$ /index.php?storytopic=$1&start=$2
# ����ҳ��: http://gi.2288.org:88/topic2-2.htm
# ע: ÿ����һ����дID,�����ۼ�$1
# ����ҳ��: http://gi.2288.org:88/ct=2x=10y=20
# ����������д:
# RewriteRule /ct(.*)-(.*)-(.*).htm$ /ct=$1x=$2y=$3
# ��: http://gi.2288.org:88/ct2-10-20.htm
# �ƶ�����Ŀ¼����ͬ����վ������
# ˵��:
# ͨ�������������ڽ���һ���µ���վ������ʱ��������������Ҫ����
# �ض���һ����վ�������ϵ���������Ŀ¼����һ����վ������
# ����:
# �ܼ���mod_rewrite�����ϵ���վ���������ض������е�URL
# /~user/anypath��http://newserver/~user/anypath��
# RewriteEngine on
# RewriteRule ^/~(.+) http://newserver/~$1 [R,L]
# ������������������
# ˵��:
# ���ٶ���Ҫ�Ķ���ҳ�棬��ʱ���б�Ҫ�ṩ�����������������ѵ����ݣ�
# �������µ�Netscape�ṩ���İ汾����Lynx�ṩ��С���İ汾��
# �������������������ṩһ������һ���İ汾��
# ����:
# �Դˣ�����Э������Ϊ������Ϊ���������ṩ��������ʽ�����ͣ�
# ����ֻ����HTTPͷ"User-Agent"�����취��
# ���¹�������������������
# ����HTTPͷ"User-Agent"��"Mozilla/3"��ͷ��
# ��ҳ��foo.html ����дΪfoo.NS.html ��������д������ֹ��
# ������"Lynx"���߰汾��Ϊ1��2��"Mozilla"������дΪfoo.20.html ��
# ���������е��������յ���ҳ������foo.32.html ��
# RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3.*
# RewriteRule ^foo.html$ foo.NS [L]
# RewriteCond %{HTTP_USER_AGENT} ^Lynx/.* [OR]
# RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[12].*
# RewriteRule ^foo $ foo.20 [L]
# RewriteRule ^foo $ foo.32 [L]
# ��ֹRobots
# ˵��:
# ������ֹһ����ȫ������robotȡ���ض�����������ҳ�棿
# һ��/robots.txt�ļ�����������"Robot Exclusion Protocol(robot�ų�Э��)"���У�
# ����������ֹ����robot��
# ����:
# ������һ���������Ծܾ�����������/~quux/foo/arc/
# (��һ��������Ŀ¼���������б����ܻ�ʹ�����������ܴ��ĸ���)�ķ��ʡ�
# ������ȷ������ֹ�ض���robot������˵��������ֹrobot���������Dz����ģ�
# ������ͬʱҲ��ֹ���û����ʸ�������Ϊ�ˣ�����Ҫ��HTTPͷ��User-Agent��Ϣ��ƥ�䡣
# RewriteCond %{HTTP_USER_AGENT} ^NameOfBadRobot.*
# RewriteCond %{REMOTE_ADDR} ^123.45.67.[8-9]$
# RewriteRule ^/~quux/foo/arc/.+ - [F]
# ��ֹ����ͼƬ
# ˵��:
# ���裬http://gi.2288.org:88/myalbum/��һЩ��ǶͼƬ��ҳ�棬
# ��ЩͼƬ�ܺã����Ծ������ó������������Լ���ҳ�����ˡ�
# ��������ͽȻ���������ǵķ����������������ˣ����Dz�Ը���������鷢����
# ����:
# ��Ȼ�����Dz���100%�ر�����ЩͼƬ����д�����˵�ҳ�棬
# �����ٿ��ԶԷ���HTTP Refererͷ���������������ơ�
# RewriteCond %{HTTP_REFERER} !^$
# RewriteCond %{HTTP_REFERER} !^http://gi.2288.org:88/myalbum/.*$ [NC]
# RewriteRule .*.gif$ - [F]
# RewriteCond %{HTTP_REFERER} !^$
# RewriteCond %{HTTP_REFERER} !.*/foo-with-gif.html$
# RewriteRule ^inlined-in-foo.gif$ - [F]
########����
# ��ֹ����
# SetEnvIfNoCase Referer "^http://gi.2288.org:88/" local_ref=1
# <FilesMatch ".(gif|jpg|png|jpeg|zip|rar|exe|swf|txt)">
# Order Allow,Deny
# Allow from env=local_ref
# </FilesMatch>
# ���� PHP 5
# LoadModule php5_module c:phpphp5apache2.dll
# #AddModule mod_php4.c
# AddType application/x-httpd-php .php
# ScriptAlias /php/ "c:/php/"
# AddType application/x-httpd-php .php
# Action application/x-httpd-php "/php/php-cgi.exe"
- ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
- �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����