配置好Apache2.0.43和Tomcat4.1.12之后的分工问题

Gaman 2002-12-06 07:20:43
我已经整合好了。
Apache的端口为80
Tomcat的端口为8080
虚拟主机都为:localhost
测试后,各自运作正常,连接测试正常

在Apache2\conf\httpd.conf的最后加入如下语句添加虚拟目录:
<VirtualHost localhost>
ServerAdmin web@mshome.com
DocumentRoot D:\Web
ServerName localhost
ErrorLog logs/home_log.txt
CustomLog logs/Custom_log.txt common
</VirtualHost>

在D:\Tomcat\webapps和D:\Web中都建立目录jsp
那么,我编写的网页应该放在什么地方呢?
要不要把静态的*.html和动态的*.jsp文件分开放置呢?
...全文
33 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
KevinChu 2002-12-06
  • 打赏
  • 举报
回复
不用分开放!
takecare 2002-12-06
  • 打赏
  • 举报
回复
很好呀,有什么问题呢?
Gaman 2002-12-06
  • 打赏
  • 举报
回复
那么应该放在哪里呢?
这里已经默认index.jsp index.htm index.html为主页面
应该放在Apache的工作目录还是Tomcat的工作目录呢?
好像只在D:\Web\jsp中放了index.jsp是不能通过http://localhost/jsp/运行
只在D:\Tomcat\webapps\jsp中放index.htm又不能通过http://localhost/jsp运行

反正就是觉得怪怪的。

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧