Problem with ProxyPass ProxyPassReverse

Discussion in 'Apache' started by vilhena, May 7, 2012.

  1. #1
    Hello.

    I have 2 websites:

    - http://a.site.pt
    - http://b.site.pt

    What I want to do is:

    Every time anyone writes http://a.site.pt/xix I want them to be redirected to b.site.pt, but I want to maintain the http://a.site.pt/xix in the URL, even though I'm actually seeing the content of http://b.site.pt

    I've tried this:
    ProxyPass /xix http://b.site.pt
    ProxyPassReverse /xix http://b.site.pt

    And it actually redirects to the site that I want, it maintains the URL, but there are images missing. So when I check the URL of one of the missing images I see this:
    http://a.ul.pt/images/7/7b/image.jpg which is wrong, it should be http://a.ul.pt/xix/images/7/7b/image.jpg

    Do you know how can I force the xix to appear in the links?

    Thanks a lot, I'm kind of desperate by now!

    Regards,
    Vilhena
     
    vilhena, May 7, 2012 IP