Apache - Reverse Proxy and HTTP 302 status message

前端 未结 4 729
失恋的感觉
失恋的感觉 2021-02-05 22:36

My team is trying to setup an Apache reverse proxy from a customer\'s site into one of our web applications.

http://www.example.com/app1/some-path maps to http://intern

4条回答
  •  广开言路
    2021-02-05 22:53

    Basically, ProxyPassReverse should take care of rewriting the Location header for you, as Kevin Hakanson pointed out.

    One pitfall I have encountered is missing the trailing slash in the url argument. Make sure to use:

    ProxyPassReverse / http://internal1.example.com/some-path/
    

    (note the trailing slash!)

提交回复
热议问题