我有一个VirtualHost设置代理所有请求到另一台服务器上运行的端口9000。
我拥有的 :
ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/
我试过了:
! ProxyPass /test.html http://localhost:9000/ ProxyPass /test.html ! http://localhost:9000/ ProxyPassMatch !^/(.*\.html)$ http://localhost:9000/$1
没有一个工作…
我想排除一个文件或一组文件被代理,文档中提到了一些关于“!!指令在你不想反向代理一个子目录的情况下是有用的”,但是没有例子那种情况
好吧,算出来,结果显然 – 没有必要指定排除path的代理。
ProxyPass / somedir!
很好