先说一下,架构:用户请求,先到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>
修改成上面就可以啦。