在rewriterule后加上参数[P]

P表明force proxy,需要mod_proxy以及根据相应协议的proxy模块比如mod_http_proxy

实际上这个时候apache就充当了反向代理的功能。

“A reverse proxy is activated using the ProxyPass directive or the [P] flag to the RewriteRule directive”

 

 

curl –L “” –d ””

done

顺便罗嗦一句forward proxy和reverse proxy

forward proxy,客户端知道自己请求的是哪台服务器,只要proxy做个转发就行了。

而reverse proxy,客户端并不知道自己请求的是哪台服务器。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-06-15
  • 2021-07-13
  • 2021-07-16
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2022-02-12
  • 2022-12-23
相关资源
相似解决方案