²©¿ÍÈÕÀú |
« July 2025 » |
ÈÕ |
Ò» |
¶þ |
Èý |
ËÄ |
Îå |
Áù |
|
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
|
|
|
|
|
ÈÕÖ¾¹éµµ |
ÈýÔÂ, 2006
ËÄÔÂ, 2006
ÎåÔÂ, 2006
ÁùÔÂ, 2006
ÆßÔÂ, 2006
Ê®ÔÂ, 2006
ʮһÔÂ, 2006
Ê®¶þÔÂ, 2006
Ò»ÔÂ, 2007
¶þÔÂ, 2007
ÈýÔÂ, 2007
ËÄÔÂ, 2007
È«²¿...
|
|
²©¿Íͳ¼Æ |
·ÖÀà: 9
ÎÄÕÂ: 204
ÆÀÂÛ: 0
±êÇ©: 3
¸½¼þ: 103
ÒýÓÃ: 0
½ñÈÕ·ÃÎÊ: 20726
×Ü·ÃÎÊÁ¿: 24990256 |
|
|
apache2.0.54·ÀÖ¹µÁÁ¬½ÓÏêϸÅäÖà |
ÒªÈÃapache·ÀµÁÁ¬½Ó£¬Ê×ÏÈÒªÈÃapacheÖ§ ³Ö.htaccess¿Í»§ÉèÖÃÎļþ£¬»¹ÒªÔö¼Ómod_rewriteÄ£¿é¡£ÒÔÏÂÊÇÎҵıàÒë°²×°¹ý³Ì¡£ 1. °²×°apacheÔö¼Ómod_rewriteÄ£¿é tar xfzv httpd-2.0.54.tar.gz cd httpd-2.0.54 ./configure --prefix=/usr/local/httpd --enable-module=most --enable- shared=max --enable-rewrite --enable-rewrite½«od_rewriteÄ£¿é±àÒë½øÀ´ make make install ²é¿´apache±àÒë½øÀ´ µÄÄ£¿é [root@TFP httpd-2.0.54]# /usr/local/httpd/bin/apachectl -l Compiled in modules: core.c mod_access.c //Ö§³Ö.htaccessÎļþ mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_rewrite.c //ÒѾ½«od_rewrite±àÒë½øÀ´ÁË mod_so.c [root@TFP httpd-2.0.54]# 2.ÉèÖÃapacheÅäÖÃÎļþhttpd.conf <Directory /> Options FollowSymLinks AllowOverride All ½«NoneÐÞ¸ÄΪAll </Directory>
AllowOverride All ½«NoneÐÞ¸ÄΪAll ÐÞ¸ÄĬÈÏAPACHEÃûÈ¥µô#ServerNameǰµÄ#ÉèÖÃΪ127.0.0.1 ServerName 127.0.0.1 ÉèÖÃÐéÄâÖ÷»ú
NameVirtualHost 220.202.19.82 <VirtualHost 220.202.19.82> DocumentRoot /home/down ServerName down.sy165.cn </VirtualHost>
ÖØÆôApache2·þÎñÆ÷ ½ÓϾÍÊÇ×öÒ»¸ö .htaccess Îļþ ÁË£¬Æä .htaccess ÎļþÄÚÈÝΪ RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://www.sy165.cn/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.sy165.cn$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp|rar|zip|exe)$ http://www.sy165.cn/err.htm [R,NC]
½«Õâ¸öÎļþ·Åµ½/home/downĿ¼Ï RewriteCond % {HTTP_REFERER} !^http://www.sy165.cn/.*$ [NC] Ö»ÔÊÐíͨ¹ý www.sy165.cn/*²ÅÄÜÏÂÔØdown.sy165.cnϵÄÎļþ¡£ RewriteCond %{HTTP_REFERER} !^http://www.sy165.cn$ [NC] Ö»ÔÊÐíͨ¹ýwww.sy165.cn²ÅÄÜÏÂÔØdown.sy165.cnϵÄÎļþ RewriteRule .* \.(jpg|jpeg|gif|png|bmp|rar|zip|exe)$ http://www.sy165.cn/err.htm [R,NC] jpg|jpeg|gif|png|bmp|rar|zip|exeÊÇÒª±£»¤µÄÄÚÈÝ£¬Èç¹ûµºÁ¬½Ó½«Ìø×ªµ½http://www.sy165.cn/err.htm
|
|
|
Submitted
by ¶àÇéÀË×Ó on 2006, June 7, 1:55 PM |
«
ÉÏһƪ
|
ÏÂһƪ
»
·Ã¿ÍÆÀÂÛ |
|
µ±Ç°BlogÎÞÈÎºÎÆÀÂÛ
|
Post by
System on 2025, July 17, 10:38 AM |
# 0 |
|
|
»¹Ã»ÓÐÈ˲ÎÓëÆÀÂÛ, Äã˵Á½¾ä°É |
|
Ìí¼ÓÆÀÂÛ
|
|
|