如果在resin中建立多个站点

如果想在resin中建立多个站点,应该怎么配置resin?
---------------------------------------------------------------

只要配置一下resin的conf文件就可以了。

1<doc-dir>/usr/local/webapps</doc-dir>
1<doc-dir>D:\webapps</doc-dir>

//站点目录

 1<web-app id="/站点1">
 2<classpath compile="true" id="WEB-INF/classes" source="WEB-INF/classes"></classpath>
 3<session-config>
 4<session-max>4096</session-max>
 5<session-timeout>3000</session-timeout>
 6<enable-cookies>true</enable-cookies>
 7<enable-url-rewriting>true</enable-url-rewriting>
 8</session-config>
 9<path-mapping real-path="/home/$1/public_html/" url-regexp="^/~([^/]*)"></path-mapping>
10</web-app>
 1<web-app id="/站点2">
 2<classpath compile="true" id="WEB-INF/classes" source="WEB-INF/classes"></classpath>
 3<session-config>
 4<session-max>4096</session-max>
 5<session-timeout>3000</session-timeout>
 6<enable-cookies>true</enable-cookies>
 7<enable-url-rewriting>true</enable-url-rewriting>
 8</session-config>
 9<path-mapping real-path="/home/$1/public_html/" url-regexp="^/~([^/]*)"></path-mapping>
10</web-app>
Published At
Categories with Web编程
comments powered by Disqus