Url Rewrite Filter 310 Manual.docx
- 文档编号:2460551
- 上传时间:2022-10-29
- 格式:DOCX
- 页数:20
- 大小:25.43KB
Url Rewrite Filter 310 Manual.docx
《Url Rewrite Filter 310 Manual.docx》由会员分享,可在线阅读,更多相关《Url Rewrite Filter 310 Manual.docx(20页珍藏版)》请在冰豆网上搜索。
UrlRewriteFilter310Manual
Manual
Forcommercialsupportcontactsales@tuckey.co.nz.Communitysupportisavaliableaturlrewritegooglegroup.
Readexamplesofusageandasampleoftheanttaskreport.Ifyouhavefeedback,orconfyouwanttosharewiththeworldemailme.Ifyouhaveanysuggestions/examplesforthismanualpleasepostthemtothegroup.
Install
1.Downloadthezip(ortar.gz)andextractitintoyourcontext'sdirectoryie,sothaturlrewrite.xmlgoesintotheWEB-INFdirectory.
2.AddthefollowingtoyourWEB-INF/web.xml(additnearthetopaboveyourservletmappings(ifyouhaveany)):
(seefilterparametersformoreoptions)
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.AddyourownconfigurationtotheWEB-INF/urlrewrite.xmlthatwascreated.
13.Restartthecontext.
Youcanvisithttp:
//127.0.0.1:
8080/rewrite-status(orwhatevertheaddressofyourlocalwebappandcontext)toseeoutput(note:
thispageisonlyviewablefromlocalhost).
FilterParameters
Thereareafewadvancedfilterparametersforenablingconffilereloadingetc.Thereareself-explanatory.
--settheamountofsecondstheconffilewillbecheckedforreload
canbeavalidinteger(0denotescheckeverytime,
-1denotesnoreloadcheck,default-1)-->
--ifyouneedtotheconffilepathcanbechanged
itisspecifiedasapathrelativetotherootofyourcontext
(default/WEB-INF/urlrewrite.xml)-->
--setsuploglevel(willbeloggedtocontextlog)
canbe:
TRACE,DEBUG,INFO(default),WARN,ERROR,FATAL,log4j,commons,
sysout:
{level}(ie,sysout:
DEBUG)
ifyouarehavingtroubleusingnormallevelsusesysout:
DEBUG
(defaultWARN)-->
--youcanchangestatuspathsothatitdoesnot
conflictwithyourinstalledapps(note,defaults
to/rewrite-status)note,muststartwith/-->
--youcandisablestatuspageifdesired
canbe:
true,false(defaulttrue)-->
--youmaywanttoallowmorehoststolookatthestatuspage
statusEnabledOnHostsisacommadelimitedlistofhosts,*can
beusedasawildcard(defaultsto"localhost,local,127.0.0.1")-->
--youmaywanttoallowmorehoststolookatthestatuspage
statusEnabledOnHostsisacommadelimitedlistofhosts,*can
beusedasawildcard(defaultsto"localhost,local,127.0.0.1")-->
--defaultstofalse.usemod_rewritestyleconfigurationfile(ifthisistrueandconfPath
isnotspecifiedconfPathwillbesetto/WEB-INF/.htaccess)-->
--loadmod_rewritestyleconfigurationfromthisparameter'svalue.
note,Settingthisparameterwillmeanthatallotherconfparametersareignored.
RewriteRule^/~([^/]+)/?
(.*)/u/$1/$2[R]
RewriteRule^/([uge])/([^/]+)$/$1/$2/[R]
-->
Note,settinglogLeveltolog4jorcommonswillcausethebuiltinlogingtocalleitherlog4jorcommons-loggingasiftheyweretheloggingframework,obviouslyyouwillneedtohavethejarforlog4jorcommons-logginginyourclasspath.
ConfigurationFileWEB-INF/urlrewrite.xml
ConfigurationisdoneviaasimpleXMLfilethatlivesinyourWEB-INFfolder.Itshouldbenamedurlrewrite.xml.ItmaybehelpfultoreadtheUrlRewriteFilterDTD(DocumentTypeDefinition).Pleasealsomakesureyoulookattheexamples.Asimpleconfigurationfilelookslike:
xmlversion="1.0"encoding="utf-8"?
>
DOCTYPEur
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Url Rewrite Filter 310 Manual
![提示](https://static.bdocx.com/images/bang_tan.gif)