看板FreeBSD
标 题[问题]有关 apache 结合 tomcat
发信站SayYA 资讯站 (Sat Dec 4 15:48:03 2004)
转信站ptt!ctu-reader!news.nctu!SayYa
请问各位:
小弟现在对於 apache 以及 tomcat 的结合上,有点问题想请教各位,
现在小弟已经在自己的机器上(FreeBSD 5.1)安装好~jdk1.4.2、
Apache 1.3.27 以及 Tomcat 4.1.30 这三套软体,而这三套软体也都
可以正常的运作,如:
在
http://hostname/index.html 可以看到 apache 测试页面
在
http://hostname:8180/index.jsp 也可以看到 tomcat 的测试页面
而 jdk 1.4.2 也可以正常的运作!
但现在有一个问题就是,因为要方便每个使用者管理自己的网页,
因此将 apache 设定每个使用者的网页就位於自己目录底下的 www 资料夹中,
(也就是希望每个 user 都可以有这样
http://hostname/~username/ 个人网页)
小弟这样设定之後,在个人目录底下建了一个简单的 test.jsp 的档案,
不过发现 tomcat 并不能解读,
也就是说进入
http://hostname/~username/test.jsp 时,会发生错误,
错误讯息如下:
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected]
and inform them of the time the error occurred, and anything
you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.27 Server at hostname Port 80
请问~小弟该如何解决这个问题呢!?
该如何结合 apache 以及 tomcat,使每个 user 底下的网页资料夹中的
*.jsp 的档案可以被妥当的被 tomcat 编译呢!?
感激不尽~~~
(by the way,小弟也有安装 mod_jk 这个 apache module,不过也是没办法!>"<)
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: nlg8.csie.ntu.edu.tw