httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] Reverse proxying is problematic
Date Wed, 02 Dec 2009 12:09:53 GMT
On Wed, Dec 2, 2009 at 11:02 AM, Robert Schenck <robschenck416@gmail.com> wrote:
> I know this is a long read...but I really need help, and felt the best way
> for anyone to help me remotely is to explain the issues in their entirety.

tl;dr

>
> Please explain any fixes in a step-by-step process. Again, I'm new to this.
>

Part of the problem is that you are rewriting HTML. Messy isn't it?
Now do it again, but don't bother with rewriting the HTML.

Remove all the Proxy directives from the main apache server config, it
makes no sense when you then define vhosts later to use.

Define a vhost for each site you wish to proxy. Set it up like so:

<VirtualHost *:80>
  ServerName proxyaip
  ProxyRequests Off
  DocumentRoot /var/empty

  <Directory /var/empty>
    Order allow,deny
    Allow from all
  </Directory>

  <Location />
    ProxyPass http://aip.com/
    ProxyPassReverse http://aip.com/
  </Location>

</VirtualHost>

Accessing http://proxyaip/ should now be just like accessing
http://aip.com/ . If you want to proxy more sites, define more vhosts.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message