ProxyPassReverse
来源:互联网 发布:马穆鲁克王朝知乎 编辑:程序博客网 时间:2024/05/30 05:42
The ProxyPassReverse
is used to change the headers sent by the app (appcluster) to Apache, before Apache sends it the browser. For example, if the app sits athttp://localhost:9013/, and it tries to redirect the browser to, say,/new_location/
, then it will respond with a redirect and location header ofhttp://localhost:9013/new_location/, and Apache will take this and send it off to the browser. Problem is, the browser (assuming it's somewhere else) then tries to send a request tohttp://localhost:9013/new_location/, and gets an error.
What ProxyPassReverse does is intercepts those headers, and rewrites them so that they match what the Apache server that's doing the proxying looks like. So if my apache server is hostinghttp://myhost.com/ and I have a ProxyPass
that points/
to http://localhost:9013/App, if the application sitting at localhost:9013 returns a redirect tohttp://localhost:9013/App/new_location/, I'll need to useProxyPassReverse
so that it gets rewritten to http://myhost.com/new_location/ by Apache before sending the request back to the browser.
If you aren't issuing redirects, it's not going to be an issue, but it doesn't hurt to have it there in case a 301/302 redirect is returned. As far as mod_rewrite, the RewriteRule applies to the request going to the App, and not the response coming from the App. So they are mutually exclusive events.
- ProxyPassReverse
- apache ProxyPass ProxyPassReverse概述
- Apache配置中ProxyPassReverse指令的含义
- ProxyPass与ProxyPassReverse及ProxyPassMatch的概述
- Apache配置中ProxyPassReverse指令的含义
- Apache配置中ProxyPassReverse指令的含义
- ProxyPass与ProxyPassReverse及ProxyPassMatch的概述
- ProxyPass与ProxyPassReverse及ProxyPassMatch的概述
- Apache配置中ProxyPassReverse指令的含义
- apache配置中ProxyPassReverse指令的含义
- Apache配置中ProxyPassReverse指令的含义
- Apache配置中ProxyPassReverse指令的含义
- 关于apache模块mod_proxy中ProxyPass和ProxyPassReverse
- ubuntu之apache正向代理及反向代理(ProxyPass\ProxyPassReverse)
- ubuntu之apache正向代理及反向代理(ProxyPass\ProxyPassReverse)
- Apache配置中ProxyPass与ProxyPassReverse及ProxyPassMatch的概述
- ubuntu之apache正向代理及反向代理(ProxyPass/ProxyPassReverse)
- 关于ProxyPass、ProxyPassReverse代理和反向代理的理解
- Web load Spring
- HDU 3634 City Planning
- 原码、反码、补码、float、ASCII码
- hdu 1061 数论
- java异常及其处理
- ProxyPassReverse
- 内存数据库
- 登录例子实践---三层架构
- sz rz 的安装
- 城府的修练
- android基本界面控件
- CareerCup-3.4
- weblogic服务器中MyEcipse Debug不能用的解决方法 加一下这句代码
- Android消息队列及线程机制详解