apache反向代理设置有关问题
apache反向代理设置问题~在线等我目前的设置如下:ProxyPass /test http://localhost:8080/userProxyPassRe
apache反向代理设置问题~在线等
我目前的设置如下:
ProxyPass /test http://localhost:8080/user
ProxyPassReverse /test http://localhost:8080/user
启动apache服务器 ,输入 http://localhost/test 可以正常跳转到应用中 ,既http://localhost:8080/user[地址栏是:http://localhost/test],默认页面是index.html
index.html代码如下:
HTML code<body><a href="/user/login.jsp">登录</a></body>
在点击index.html页面中的“登录”链接后,就出现404错误了,地址栏显示为:http://localhost/user/login.jsp,应该 为http://localhost/test/user/login.jsp就可以访问到了,不知道是什么原因导致的,麻烦各位帮忙看看,在线等
说明:
我改成设置如下:
ProxyPass /user http://localhost:8080/user
ProxyPassReverse /user http://localhost:8080/user
就可以了,不知道啥原因,感谢!!!
[解决办法]<body>
<a href="login.jsp">登录</a>
</body>
有分拿,哈哈