Re: [users@httpd] mod_rewrite question

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

 



On 3/12/06, Paul Aviles <paul.aviles@xxxxxxxxx> wrote:
> I am pulling my hair out with this. I have a single public IP and already
> have a web server redirected on the firewall from the external IP to the
> private IP of 10.5.36.5. Now I need to enable another box (10.5.36.6)
> running on port 80 to be accessible from the outside.
>
> I can open port 81 on the fw and send it to the same 10.5.36.5, but can
> apache handle redirecting the outside request from port 81 to a separate
> internal ip 10.5.36.6 on port 80 and then send the requests back properly to
> the public browsers?
>
> If so guys please give me a hand with this as I cannot make heads or tails
> with this and already tried for 2 days with no luck.

You need to do the following:

Add a "Listen 0.0.0.0:81"
to the apache config on your first box, so the daemon listens to port 81.

Configure a virtual host on this port that proxies everything:
<VirtualHost *:80>
    ProxyPass / http://10.5.36.6/
    ProxyPassReverse / http://10.5.36.6/
</VirtualHost>

(Disclaimer: This is from memory, I have not actually tested this)

Krist

--
krist.vanbesien@xxxxxxxxx
Solothurn, Switzerland

---------------------------------------------------------------------
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