httpd.conf----->主配置文件
srm.conf------>填加资源文件
access.conf--->设置文件的访问权限
AuthName "会员专区"
AuthType "Basic"
options indexes followsymlinks
allowoverride authconfig
order allow,deny
allow from all
order deny,allow
deny from all
allow from safechina.net
AuthName PrivateFiles
AuthType Basic
AuthUserFile /path/to/httpd/users
require Phoenix
# htpasswd -c /path/to/httpd/users Phoenix
Alias /pub /home/ftp/pub/
DefaultType application/octet-stream
Options Indexes
AllowOverride AuthConfig
order allow,deny
allow from all
[root@ pub]# more .htaccess
AuthName Branch Office Public Software Download Area
AuthType Basic
AuthUserFile /etc/.usrpasswd
require valid-user
servername www.your.com
errorlog /var/log/httpd/error_log
transferlog /var/log/httpd/access_log
rewriteengine on
proxyrequests off
usecanonicalname off
rewriterule ^/(.*)$ http://xxx.xxx.xx.x/$1 Apache服务器的IP地址。
servername http://download.your.com/pub/
errorlog /var/log/httpd/download/error_log
transferlog /var/log/httpd/download/access_log
rewriteengine on
proxyrequests off
usecanonicalname off
rewriterule ^/(.*)$ http://xxx.xxx.xx.x/$1 同上Apache服务器的IP地址。
TimeOut n
Listen 8000
Listen 192.170.2.1:80
Listen 192.170.2.5:8000
Port 80
MaxSpareServers n
MinSpareServers n
StartServers 5
MaxKeepAliveRequests 100
KeepAlive on
KeepAliveTimeout 15
HostnameLookups on off double
BindAddress 192.168.0.1
BindAddress *
LimitRequestBody n
LimitRequestBody 102400
DocumentRoot /www/htdocs
MaxClients n
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2
<CENTER><ccid_nobr>
<table width="400" border="1" cellspacing="0" cellpadding="2"
bordercolorlight = "black" bordercolordark = "#FFFFFF" align="center">
<tr>
<td bgcolor="e6e6e6" class="code" style="font-size:9pt">
<pre><ccid_code>
Options ExecCGI
SetHandler cgi-script
#ifndef HARD_SERVER_LIMIT
#ifdef WIN32
#define HARD_SERVER_LIMIT 1024
#else
#define HARD_SERVER_LIMIT 256
#endif
#endif
order deny,allow
deny from 202.202.202.0/24
CustomLog logs/access_log "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i""
Server: Apache/1.3.26 (Unix) mod_perl/1.26
ServerTokens Prod
Server: Apache
Server: It iS a nOnE-aPaCHe Server
| 欢迎光临 站长论坛 (http://tzlink.com/bbs/) | Powered by Discuz! X3.2 |