【发布时间】:2012-02-09 19:18:21
【问题描述】:
例如httpd.conf中有如下配置:
ProxyPass app http://somehost:someport/App_1
ProxyPassReverse app http://somehost:someport/App_1
现在我应该使用绝对 URL 将请求从“/myapp”转发到“/app”:
<Location /myapp >
ProxyPass http://localhost:8080/app
ProxyPassReverse http://localhost:8080/app
</Location>
是否可以在 ProxyPass/ProxyPassReverse 中使用相对路径?
<Location /myapp >
ProxyPass /app
ProxyPassReverse /app
</Location>
【问题讨论】:
标签: apache proxy apache2 reverse-proxy