锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲综合无码精品一区二区三区,亚洲理论片中文字幕电影,亚洲天堂男人影院http://m.tkk7.com/cctvx1/category/17760.htmlzh-cnTue, 27 Feb 2007 08:51:28 GMTTue, 27 Feb 2007 08:51:28 GMT60Apache mod_rewritehttp://m.tkk7.com/cctvx1/archive/2007/01/30/96805.htmlDr.WaterDr.WaterTue, 30 Jan 2007 15:06:00 GMThttp://m.tkk7.com/cctvx1/archive/2007/01/30/96805.htmlhttp://m.tkk7.com/cctvx1/comments/96805.htmlhttp://m.tkk7.com/cctvx1/archive/2007/01/30/96805.html#Feedback0http://m.tkk7.com/cctvx1/comments/commentRss/96805.htmlhttp://m.tkk7.com/cctvx1/services/trackbacks/96805.html涓昏灝辨槸姝e垯琛ㄨ揪寮忕殑榪愮敤,闄や簡mod_rewrite涔嬪榪樻湁涓涓猽rlrewritefilter
涓嬮潰鏄竴涓祴璇曚簩綰у煙鍚嶆槧灝勮鍒?br />
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^www.]+.test.ecom$
Rewriterule ^(.+) %{HTTP_HOST}$1 [C]聽
Rewriterule ^([^www.]+)\.test\.ecom(.*) /shop_$1$2
Rewriterule ^www.test.ecom(.*) /$1 [nc,PT]
RewriteRule /shop_(.+)/pic/(.*)$ /pic/$2 [nc,PT]
RewriteRule /shop_(.+)/js/(.*)$ /js/$2 [nc,PT]
RewriteRule /shop_(.+)/css/(.*)$ /css/$2 [nc,PT]
RewriteRule /shop_(.+)/(.+).do?(\.*)$聽 /$2.do?domainName=$1&%{QUERY_STRING} [L,nc]


RewriteLog "logs/rewrite.log"
RewriteLogLevel 3


鍏抽敭瀛楁:
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 RewriteCond 琛ㄧず濡傛灉鏉′歡婊¤凍鍒欎嬌鐢ㄤ笅闈㈢殑Rewriterule
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Rewriterule 灝辨槸閲囩敤鍏蜂綋鐨勬鍒欒〃杈懼紡鏉ュ尮閰嵚?br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Rewriterule 鍚庨潰榪樺彲浠ュ甫鏈夊弬鏁?br />
聽聽聽聽聽聽聽聽聽聽聽聽 瑙乤pache鍙傝?br />聽聽聽聽聽聽聽聽聽聽 http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
聽聽聽聽聽聽聽聽聽

  • 'chain|C' (chained with next rule)
    This flag chains the current rule with the next rule (which itself can be chained with the following rule, and so on). This has the following effect: if a rule matches, then processing continues as usual - the flag has no effect. If the rule does not match, then all following chained rules are skipped. For instance, it can be used to remove the ``.www'' part, inside a per-directory rule set, when you let an external redirect happen (where the ``.www'' part should not occur!).
  • 'cookie|CO=NAME:VAL:domain[:lifetime[:path]]' (set cookie)
    This sets a cookie in the client's browser. The cookie's name is specified by NAME and the value is VAL. The domain field is the domain of the cookie, such as '.apache.org', the optional lifetime is the lifetime of the cookie in minutes, and the optional path is the path of the cookie
  • 'env|E=VAR:VAL' (set environment variable)
    This forces an environment variable named VAR to be set to the value VAL, where VAL can contain regexp backreferences ($N and %N) which will be expanded. You can use this flag more than once, to set more than one variable. The variables can later be dereferenced in many situations, most commonly from within XSSI (via <!--#echo var="VAR"-->) or CGI ($ENV{'VAR'}). You can also dereference the variable in a later RewriteCond pattern, using %{ENV:VAR}. Use this to strip information from URLs, while maintaining a record of that information.
  • 'forbidden|F' (force URL to be forbidden)
    This forces the current URL to be forbidden - it immediately sends back a HTTP response of 403 (FORBIDDEN). Use this flag in conjunction with appropriate RewriteConds to conditionally block some URLs.
  • 'gone|G' (force URL to be gone)
    This forces the current URL to be gone - it immediately sends back a HTTP response of 410 (GONE). Use this flag to mark pages which no longer exist as gone.
  • 'handler|H=Content-handler' (force Content handler)
    Force the Content-handler of the target file to be Content-handler. For instance, this can be used to simulate the mod_alias directive ScriptAlias, which internally forces all files inside the mapped directory to have a handler of ``cgi-script''.
  • 'last|L' (last rule)
    Stop the rewriting process here and don't apply any more rewrite rules. This corresponds to the Perl last command or the break command in C. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. For example, use it to rewrite the root-path URL ('/') to a real one, e.g., '/e/www/'.
  • 'next|N' (next round)
    Re-run the rewriting process (starting again with the first rewriting rule). This time, the URL to match is no longer the original URL, but rather the URL returned by the last rewriting rule. This corresponds to the Perl next command or the continue command in C. Use this flag to restart the rewriting process - to immediately go to the top of the loop.
    Be careful not to create an infinite loop!
  • 'nocase|NC' (no case)
    This makes the Pattern case-insensitive, ignoring difference between 'A-Z' and 'a-z' when Pattern is matched against the current URL.
  • 'noescape|NE' (no URI escaping of output)
    This flag prevents mod_rewrite from applying the usual URI escaping rules to the result of a rewrite. Ordinarily, special characters (such as '%', '$', ';', and so on) will be escaped into their hexcode equivalents ('%25', '%24', and '%3B', respectively); this flag prevents this from happening. This allows percent symbols to appear in the output, as in

    RewriteRule /foo/(.*) /bar?arg=P1\%3d$1 [R,NE]

    which would turn '/foo/zed' into a safe request for '/bar?arg=P1=zed'.
  • 'nosubreq|NS' (not for internal sub-requests)
    This flag forces the rewriting engine to skip a rewriting rule if the current request is an internal sub-request. For instance, sub-requests occur internally in Apache when mod_include tries to find out information about possible directory default files (index.xxx files). On sub-requests it is not always useful, and can even cause errors, if the complete set of rules are applied. Use this flag to exclude some rules.
    To decide whether or not to use this rule: if you prefix URLs with CGI-scripts, to force them to be processed by the CGI-script, it's likely that you will run into problems (or significant overhead) on sub-requests. In these cases, use this flag.
  • 'proxy|P' (force proxy)
    This flag forces the substitution part to be internally sent as a proxy request and immediately (rewrite processing stops here) put through the proxy module. You must make sure that the substitution string is a valid URI (typically starting with http://hostname) which can be handled by the Apache proxy module. If not, you will get an error from the proxy module. Use this flag to achieve a more powerful implementation of the ProxyPass directive, to map remote content into the namespace of the local server.

    Note: mod_proxy must be enabled in order to use this flag.

  • 'passthrough|PT' (pass through to next handler)
    This flag forces the rewrite engine to set the uri field of the internal request_rec structure to the value of the filename field. This flag is just a hack to enable post-processing of the output of RewriteRule directives, using Alias, ScriptAlias, Redirect, and other directives from various URI-to-filename translators. For example, to rewrite /abc to /def using mod_rewrite, and then /def to /ghi using mod_alias:

    RewriteRule ^/abc(.*) /def$1 [PT]
    Alias /def /ghi

    If you omit the PT flag, mod_rewrite will rewrite uri=/abc/... to filename=/def/... as a full API-compliant URI-to-filename translator should do. Then mod_alias will try to do a URI-to-filename transition, which will fail.

    Note: You must use this flag if you want to mix directives from different modules which allow URL-to-filename translators. The typical example is the use of mod_alias and mod_rewrite.

  • 'qsappend|QSA' (query string append)
    This flag forces the rewrite engine to append a query string part of the substitution string to the existing string, instead of replacing it. Use this when you want to add more data to the query string via a rewrite rule.
  • 'redirect|R [=code]' (force redirect)
    Prefix Substitution with http://thishost[:thisport]/ (which makes the new URL a URI) to force a external redirection. If no code is given, a HTTP response of 302 (MOVED TEMPORARILY) will be returned. If you want to use other response codes in the range 300-400, simply specify the appropriate number or use one of the following symbolic names: temp (default), permanent, seeother. Use this for rules to canonicalize the URL and return it to the client - to translate ``/~'' into ``/u/'', or to always append a slash to /u/user, etc.
    Note: When you use this flag, make sure that the substitution field is a valid URL! Otherwise, you will be redirecting to an invalid location. Remember that this flag on its own will only prepend http://thishost[:thisport]/ to the URL, and rewriting will continue. Usually, you will want to stop rewriting at this point, and redirect immediately. To stop rewriting, you should add the 'L' flag.
  • 'skip|S=num' (skip next rule(s))
    This flag forces the rewriting engine to skip the next num rules in sequence, if the current rule matches. Use this to make pseudo if-then-else constructs: The last rule of the then-clause becomes skip=N, where N is the number of rules in the else-clause. (This is not the same as the 'chain|C' flag!)
  • 'type|T=MIME-type' (force MIME type)
    Force the MIME-type of the target file to be MIME-type. This can be used to set up the content-type based on some conditions. For example, the following snippet allows .php files to be displayed by mod_php if they are called with the .phps extension:

    RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source]


聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽



Dr.Water 2007-01-30 23:06 鍙戣〃璇勮
]]>
Apache 2.2 鍜?Subversion鏁村悎http://m.tkk7.com/cctvx1/archive/2006/11/27/83682.htmlDr.WaterDr.WaterSun, 26 Nov 2006 16:14:00 GMThttp://m.tkk7.com/cctvx1/archive/2006/11/27/83682.htmlhttp://m.tkk7.com/cctvx1/comments/83682.htmlhttp://m.tkk7.com/cctvx1/archive/2006/11/27/83682.html#Feedback0http://m.tkk7.com/cctvx1/comments/commentRss/83682.htmlhttp://m.tkk7.com/cctvx1/services/trackbacks/83682.html Apache 2.2.3 Subversion 1.4.0(r21228) integrate
reference :
聽聽聽聽聽聽聽聽聽
http://xrinehart.cnblogs.com/archive/2005/10/27/262759.html
聽聽聽聽聽聽聽聽聽 http://xrinehart.cnblogs.com/archive/2005/10/29/264659.html
聽聽聽聽聽聽聽聽聽 http://www.apachelounge.com/forum/viewtopic.php?t=121
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 (maniac provide svn 1.4.0 module win32聽 binary for apache 2.2.x)
Warning:
聽聽聽聽聽聽聽 subversion.tigris.org
聽聽聽聽聽聽聽 Windows binaries - ATTENTION!: The mod_dav_svn binaries available here are NOT compatible with Apache 2.2

FAQ:
聽聽聽聽 Error:聽 Expected fromat '3' of repository;found format '5'
聽聽聽聽聽聽聽聽聽聽聽聽 use "--pre-1.4-compatible", default format is "5" !!
聽聽聽聽聽聽聽聽聽聽聽
Integrate Guide:
聽聽聽聽聽聽聽聽聽聽聽 I聽 use other complie svn module for apache 2.2.3 ,
聽聽聽聽 Step1:
聽聽聽聽聽聽聽聽聽聽聽聽 copy *.dll to聽 %APACHE_HOME%\bin
聽聽聽聽聽聽聽聽聽聽聽聽 copy *.so聽 to聽 %APACHE_HOME%\modules
聽聽聽聽 Step2:
聽聽聽聽聽聽聽聽聽聽聽聽 edit %APACHE_HOME%\conf\httpd.conf
聽聽聽聽聽聽聽聽聽聽聽聽 find:
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 #LoadModule dav_module聽 modules\mod_dav.so
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 #LoadModule dav_fs_module modules\mod_dav_fs.so
聽聽聽聽聽聽聽聽聽聽聽聽 change: "#" to ""
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 LoadModule dav_module聽 modules\mod_dav.so
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 LoadModule dav_fs_module modules\mod_dav_fs.so
聽聽聽聽聽聽聽聽聽聽聽聽 and add SVN Module:
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 #SVN
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 LoadModule dav_svn_module聽聽 modules\mod_dav_svn.so
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 LoadModule authz_svn_module聽 modules\mod_authz_svn.so
聽聽聽聽聽 Step3:聽
聽聽聽聽聽聽聽聽聽聽聽聽聽 config聽 SVN auth,add httpd.conf
聽聽聽聽聽聽聽聽聽聽聽聽聽 use apache basic auth,gen password file
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 %APACHE_HOME%\bin\htpasswd -cm D:/server/webservice/clear/Apache2.2/svn-auth/svn-auth-file harry

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <IfModule dav_svn_module>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <Location /svn>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 DAV svn
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 SVNParentPath D:/SubversionRoot
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 AuthTypeBasic
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 AuthName "Subversion Repository"
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 AuthUserFile D:/server/webservice/clear/Apache2.2/svn-auth/svn-auth-file
聽聽聽聽聽聽 Require valid-user
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </Location>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </IfModule>
聽聽聽聽聽聽聽
涓昏灝辨槸svn瀹樻柟鐨剋in binary涓嶆敮鎸乤pache 2.2鐨勬柊module璋冪敤銆?br />聽聽聽聽聽聽

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽



Dr.Water 2006-11-27 00:14 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 免费一级毛片在线播放放视频| 亚洲嫩草影院久久精品| 亚洲最大成人网色香蕉| 久久久久久国产精品免费无码| 亚洲国产精华液网站w| 国产在线观看免费视频软件| 亚洲自偷自偷偷色无码中文| 国产精品hd免费观看| 亚洲中文字幕无码永久在线 | 国产精品爱啪在线线免费观看| 亚洲av一综合av一区| 久久精品电影免费动漫| 亚洲成人在线电影| 18pao国产成视频永久免费| 亚洲日本乱码一区二区在线二产线 | 亚洲欧美aⅴ在线资源| 欧美在线看片A免费观看| 久久综合久久综合亚洲| 免费观看一级毛片| 免费观看四虎精品成人| 亚洲午夜国产精品无码| 一级毛片免费播放| 亚洲 欧洲 日韩 综合在线| 国产在线观看免费视频播放器| 美女被免费网站在线视频免费 | 一道本在线免费视频| 久久精品国产精品亚洲精品| 无码人妻一区二区三区免费n鬼沢| 亚洲蜜芽在线精品一区| 最近2019中文免费字幕| 免费一区二区无码视频在线播放 | 国内精自视频品线六区免费| 日本亚洲色大成网站www久久 | 国内自产少妇自拍区免费| 看全免费的一级毛片| 亚洲成AV人片天堂网无码| 亚洲一级免费毛片| 美女被免费网站视频在线| 久久亚洲成a人片| 天天看免费高清影视| 99在线免费视频|