如果想在resin中建立多个站点,应该怎么配置resin?
---------------------------------------------------------------
只要配置一下resin的conf文件就可以了。
<doc-dir>/usr/local/webapps</doc-dir>
<doc-dir>D:/webapps</doc-dir> //站点目录
<web-app id='/站点1'>
<classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='true'/>
<session-config>
<session-max>4096</session-max>
<session-timeout>3000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
<path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
</web-app>
<web-app id='/站点2'>
<classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='true'/>
<session-config>
<session-max>4096</session-max>
<session-timeout>3000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
<path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
</web-app>
---------------------------------------------------------------
只要配置一下resin的conf文件就可以了。
<doc-dir>/usr/local/webapps</doc-dir>
<doc-dir>D:/webapps</doc-dir> //站点目录
<web-app id='/站点1'>
<classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='true'/>
<session-config>
<session-max>4096</session-max>
<session-timeout>3000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
<path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
</web-app>
<web-app id='/站点2'>
<classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='true'/>
<session-config>
<session-max>4096</session-max>
<session-timeout>3000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
<path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
</web-app>