#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Canton, OH, USA
    Posts
    37
    Rep Power
    19

    Apache 2 http reverse proxy name-based


    I have an Apache 2.47 name-based virtual host reverse proxy server set up. In order to use it, DNS maps www.vhost.tld to the IP address of the proxy server.

    I can use ProxyPass to reference the IP address of the origin server:

    ProxyPass / http://###.###.###.###/

    but the origin server also uses name-based virtual hosts and so expects to see www.vhost.tld in the query.

    Is there a way to do this? The only method that I can come up with is to use a split DNS for www.vhost.tld with the external DNS referring to the proxy server while the proxy server uses a DNS that refers to the origin server with:

    ProxyPass / http://www.vhost.tld/

    Ideas?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    California, U.S.A.
    Posts
    3
    Rep Power
    0
    Hi,

    You've probably sovled this by now, but I ran in to a similar problem.

    It's simple to solve, though. Just add:
    Code:
    ProxyPreserveHost On
    And Apache will pass on the host name that the client used instead of it's own host name.


    Asa

IMN logo majestic logo threadwatch logo seochat tools logo