【发布时间】:2012-07-20 15:42:59
【问题描述】:
我有一个小疑问,可能很愚蠢,但我想消除疑问。
假设我有一台服务器计算机,其中运行着 tomcat 和 apache 服务器。
我现在可以使用 "http://localhost:8080/" = Tomcat for java "http://localhost/" = 用于 php 页面的 Apache 服务器
所以现在当我访问网址时 http://www.abc.com/Construction/index.html 所以当两者都有 index.html 页面时,它会去点击哪个应用程序,即 apache 或 tomcat。
总之我们用哪里来提端口? http://www.abc.com/ 在这个 url 中提到的应用程序端口在哪里以及 http 协议端口 80 将如何出现在图片中?
请消除我的疑问。
谢谢
【问题讨论】:
-
我的问题是如何知道哪个应用程序要传递控制权,即 index.html 页面的 tomcat 或 apache?
标签: jakarta-ee tomcat servlets webserver tomcat6