Re: Reverse proxying is problematic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm get "Access Forbidden" when trying to access proxysrv1/aip and proxysrv1/apl

This is my updated vhost file:

http://paste.ubuntu.com/333080/

On Wed, Dec 2, 2009 at 1:09 PM, Tom Evans <tevans.uk@googlemail.com> wrote:
On Wed, Dec 2, 2009 at 11:02 AM, Robert Schenck <robschenck416@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux