resion修改配置

一 安装路径
/p2p-jztb/bao/resin-pro-4.0.44/conf
修改配置页面
cd /usr/local/resion/conf/
vim resin.xml
基于多host的配置:

<!-- the default host, matching any host name -->
<host id="test.zhidianp2p.com" root-directory="">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="/p2p-jztb/OA/testRoot">
</web-app>
</host>
<host id="www.zhidianp2p.com" root-directory="">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="/p2p-jztb/OA/WebRoot">
</web-app>
</host>
<host id="dev.zhidianp2p.com" root-directory="">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="/p2p-jztb/OA/devRoot">
</web-app>
</host>

<resin:if test="${resin_doc}">
<host id="${resin_doc_host}" root-directory="${resin_doc_host}">
<web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
</host>

重启resin service resin restart

posted @ 2015-06-16 16:22  青青子衿zz  阅读(118)  评论(0)    收藏  举报