Resin 泛解析

[ 2007-09-11 17:30:30 | Author: zhenhua ]
Font Size: Large | Medium | Small
1. 使***.abc.aaa.com 和abc.aaa.com指向同一应用
<host id='abc.aaa.com'>
<host-alias-regexp>([^.]+)\.abc\.aaa\.com</host-alias-regexp>
<host-name>${host-alias-regexp.regexp[1]}.abc.aaa.com</host-name>
<web-app id="/" document-directory="e:\space\webroot"/>
</host>

2.使group.XXX.com 和XXX.group.XXX.com 都指向同一应用
<host id="group.aaa.com">
 <host-alias-regexp>([a-zA-Z0-9.]+)roup\.([^.]+)\.com</host-alias-regexp>
 <host-name>${host-alias-regexp.regexp[1]}roup.${host-alias-regexp.regexp[2]}.com</host-name>
 <root-directory>.</root-directory>
 <web-app id="/" document-directory="e:\group_aaa"/>
</host>

启动Resin后,访问
http://a.group.aaa.com/
 
http://group.aaa.com/
 
http://group.bbb.com/
 
http://a.group.bbb.com/

都能访问到同一系统。

更多请访问官方文档 http://www.caucho.com/resin-3.1/doc/host-tags.xtp#host
Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=488
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=488

There is no comment on this article.

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
Smilies
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code