【发布时间】:2013-09-03 16:01:29
【问题描述】:
由于我对 Apache 服务器比较陌生,因此过去 2 天我一直在尝试完成这项工作。这就是我想要在本地机器上做的事情。
- 我已经安装了 Apache 服务器,它充当所有请求的前门,并将它们发送到 JBOSS 服务器。这是通过 AJP 方法。
- 我已经在 http.conf 中启用了 mod_rewrite,我想在我的 localhost 中做一个简单的重定向。以下是我尝试过的..
重写引擎开启
重写规则 ^first.html$ second.html
这不起作用,因为日志显示它正在查找文档根目录 C:\Apacheserver\Apache2\htdocs 中的文件,并且我在此位置没有任何文件,因为文件来自 JBOSS(例如:C:/ jboss4.0/jboss-4.0.3SP1/server/MyApp/deploy/unisysv2.ear/web-app.war)。
如何在这种情况下使此重定向工作。
谢谢
【问题讨论】:
-
我还在 http.conf 中启用了 mod_rewrite 模块
标签: apache url mod-rewrite jboss rewriting