配置文件是从resin2上复制下来的,现在的版本是rensin3,代码如下:
<!-- 2013-11-15 begin(www.tsa.cn) -->
<host id='tsa.cn,www2.tsa.cn,www.tsa.cn,cntsa.cn,www.cntsa.cn,www2.cntsa.cn,172.18.140.3,124.93.228.125,www.tsa.com.cn,tsa.com.cn'>
<!-- <root-dir>/usr/local/web_root/www.tsa.cn</root-dir> -->
<access-log path='/data/app-log/web_root/www.tsa.cn/app/logs/www.tsa.cn-access.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
<error-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-error.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
<stdout-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-stdout.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
<stderr-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-stderr.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
<directory-servlet>none</directory-servlet>
<web-app id='/'>
<app-dir>data/app/tsaweb</app-dir>
<multipart-form enable='true' />
<welcome-file-list>index.vm</welcome-file-list>
</web-app>
<web-app id='/csc'>
<app-dir>data/app/theme/csc</app-dir>
<multipart-form enable='true' />
<welcome-file-list>index.html</welcome-file-list>
</web-app>
<web-app id='data/zscq'>
<app-dir>data/app/theme/bztheme/</app-dir>
<welcome-file-list>bz2008.vm</welcome-file-list>
<multipart-form enable='true' />
</web-app>
</host>
<!-- 2013-11-15 end -->
<!-- 2013-11-18 begin(unitrust.com.cn) -->
<host id='unitrust.com.cn,www2.unitrust.com.cn,www.unitrust.com.cn,unitrust.com,www.unitrust.com,www2.unitrust.com,utca.cn,www2.utca.cn,www.utca.cn,unitrust.cn,www2.unitrust.cn,www.unitrust.cn,utca.com.cn,www2.utca.com.cn,www.utca.com.cn,unitrust.org,www2.unitrust.org,www.unitrust.org,unitrust.org.cn,www2.unitrust.org.cn,www.unitrust.org.cn'>
<root-dir>/data/app/2006unitrust.dl.cn</root-dir>
<directory-servlet>none</directory-servlet>
<access-log path='/data/app-log/web_root/unitrust.com.cn/logs/unitrust.com.cn-access.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
<error-log path='/data/app-log/web_root/unitrust.com.cn/logs/unitrust.com.cn-stderr.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
<stdout-log path='/data/app-log/web_root/unitrust.com.cn/logs/unitrust.com.cn-stdout.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
/>
报错:
conf/resin.conf:352: <error-log> is an unexpected tag (parent <host> starts at 341).
350:
351: format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
352: />
353: <stdout-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-stdout.log'
354:
<host> syntax: ( (@id | @regexp | <regexp>)?
& (@host-alias | <host-alias>)*
& (@host-alias-regexp | <host-alias-regexp>)*
& (@host-name | <host-name>)?
& (@root-directory | <root-directory>)?
& (@secure-host-name | <secure-host-name>)?
& <authenticator>*
& <bean>*
& (@case-insensitive | <case-insensitive>)?
& (@character-encoding | <character-encoding>)?
& <class-loader>*
& <component>*
& <connection-factory>*
& <connector>*
& <database>*
& <database-default>*
& <dependency>*
& (@dependency-check-interval | <dependency-check-interval>)?
& <ejb-message-bean>*
& <ejb-server>*
& <ejb-stateful-bean>*
& <ejb-stateless-bean>*
& <env-entry>*
& <grant>*
& <rcore:import>*
& <interceptor>*
& <rcore:include>*
& <javac>?
& <jms-connection-factory>*
& <jms-queue>*
& <jms-topic>*
& <jndi-link>*
& <log>*
& <logger>*
& <log-handler>*
& <mail>*
& <persistence-manager>*
& <reference>*
& <remote-client>*
& <resource>*
& <resource-adapter>*
& <resource-default>*
& (<rar-deploy> | <resource-deploy>)*
& <scheduled-task>*
& <stderr-log>?
& <stdout-log>?
& <system-property>*
& (@temp-dir | <temp-dir>)?
& <web-service-client>*
& (@work-dir | <work-dir>)?
& (<rcore:log> | <rcore:message>)*
& <rcore:set>*
& <rcore:include>*
& <rcore:env>*
& <rcore:if>*
& <rcore:choose>*
& <access-log>?
& <application>*
& (@document-directory | <document-directory>)?
& <ear-default>*
& <ear-deploy>*
& <error-page>*
& (@lazy-init | <lazy-init>)?
& (@redeploy-check-interval | <redeploy-check-interval>)?
& (@redeploy-mode | <redeploy-mode>)?
& <rewrite-dispatch>?
& (@startup-mode | <startup-mode>)?
& <web-app-deploy>*
& <web-app-default>*
& <web-app>*
& <rcore:env>*
& <rcore:if>*
& <rcore:choose>*)
求问应该怎么配置。。拜托各位大神。。。
不能直接用resin2的配置。在resin3上面修改吧。现在都resin4了,还在用N年前2的配置。。。无语路过
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。