您的位置:首页 > 运维架构 > Apache

关于weblogic apache 的页面跳转问题(已解决)

2010-11-04 18:41 519 查看
先说一下,架构:用户请求,先到apache 再转到 weblogic server

case:

如果有客户输入:http://abc.com/index.jsp 那么okay, 现在就是有要求:输入:http://abc.com 也要转到http://abc.com/index.jsp

修改方法:

看一下apache 的conf 文件:httpd.conf

看到有关转向的代码:

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

看看这个文件起始路径在哪里: DocumentRoot "/apache/apache2/htdocs"

可以修改这个路径下的index.html 文件

<html>

<head>

<meta http-equiv="refresh" content="0;url=index.jsp">

</head>

</html>

修改成上面就可以啦。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐