4
例如有在httpd.conf配置如下:是否可以在ProxyPass/ProxyPassReverse中使用相对路径?
ProxyPass app http://somehost:someport/App_1
ProxyPassReverse app http://somehost:someport/App_1
现在我应该使用绝对URL转发来自“/ MyApp的”到“/应用程序”的要求:
<Location /myapp >
ProxyPass http://localhost:8080/app
ProxyPassReverse http://localhost:8080/app
</Location>
是否有可能在ProxyPass/ProxyPassReverse中使用相对路径?
<Location /myapp >
ProxyPass /app
ProxyPassReverse /app
</Location>
为什么有可能使用平衡器结构? ProxyPass平衡器:// app。或者平衡器:// app - 它是URL? – 2012-01-13 22:28:13
是的,'平衡器:// app'是一个URL。它映射到一堆成员,比如'ajp:// app.domain.com'也是URL。当然,'ftp:// some.host.com/dir'也是一个URL,但它在ProxyPass中不受支持。 – 2012-01-14 00:37:25
ProxyPassMatch怎么样? – 2017-06-20 11:44:57