Re: Apache Reverse Proxy for more than one website.

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

 



On Wed, Mar 17, 2021 at 12:05 PM Jason Long <hack3rcon@xxxxxxxxx.invalid> wrote:
>
> Thank you.
> My VM uses port forwarding. When I browse 127.0.0.1:2080 on my host then it forwarded to my guest port 80.
>
> > Are you suggesting that a request which *would* go to 192.168.1.4 if it were
> turned on, should in fact go to 192.168.1.20 if 192.168.1.4 is turned off?
>
> Yes. My browser can't distinguish my requests and when a server is off then it must forwarded to other servers automatically. I know in a real scenario, it solved by domain name.
> If my configuration is OK, then Apache accepts a request from port 80, one of my servers is turned off and Apache must forward it to another server. I used " <VirtualHost *:80>" and not any IP.

The configuration doesn't express this at all. Your configuration
expresses one domain forwarded to one backend and a second domain
forwarded to a second backend.
I don't think what you describe is possible (there may be some obscure
config to resemble it) or useful.  No user has this expectation for a
URL they're accessing. A service is either clustered behind a reverse
proxy or it isn't.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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