- 论坛徽章:
- 0
|
我的Apache是2.0.48,resin是3.0.8
Apache Listen 80端口,resin Listen 8081端口,
resin的配置
<!-- define the servers in the cluster -->
<server id="" address="127.0.0.1" port="6802"/>
.
.
.
<host id="" root-directory=".">
<!--
- configures an explicit root web-app matching the
- webapp's ROOT
-->
<web-app id="/" root-directory="/var/www/html"/>
<web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
<!--
- Administration application /resin-admin
-->
<prologue>
<resin:set var="resin_admin_external" value="false"/>
<resin:set var="resin_admin_insecure" value="true"/>
</prologue>
</web-app>
</host>
Apache 中添加如下配置:
#
# mod_caucho Resin Configuration
#
LoadModule caucho_module /usr/lib64/httpd/modules/mod_caucho.so
<IfModule mod_caucho.c>
ResinConfigServer localhost 6802
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
AddHandler caucho-request .action
AddHandler caucho-request jsp
<Location /servlet/*>
SetHandler caucho-request
</Location>
</IfModule>
结果我在IE中打开 http://localhost 显示的是Apache的默认页面,Apache可以工作
打开 http://localhost:8081,显示的也是Apache的默认页面,说明resin的文档路径设置也正确,
打开 http;//localhost:8081/test.jsp 可以正常工作,说明resin本身是可以工作的,也没有问题
可是,打开 http://localhost/test.jsp时能正常显示jsp页面,但php页面却不能正常的显示,而是显示下面那样
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
出现这样的问题,是不是所有的请求包括php的请求都传给resin那里处理了,所以导致php不能正常显示???
当我把httpd.conf配置文件的
ResinConfigServer localhost 6802
这句注释掉,又能正常使用php了,但这样做就意味着不能同时使用jsp.
请问那位大哥知道是怎么回事?该怎么解决?
[ 本帖最后由 tomzhi 于 2008-11-17 15:11 编辑 ] |
|