Re: Apache Reverse Proxy for more than one website.

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

 



On Wednesday 17 March 2021 at 14:57:06, Jason Long wrote:

> My current configuration is:
> 
> <VirtualHost *:80>
>      ServerName node3
>      ErrorLog /var/log/httpd/error_log
>      TransferLog /var/log/httpd/access_log
>      <Location />

I don't like the look of the / in that tag.  It's closing the <Location> tag 
before you've defined what it contains.  Try:

	<Location "/">

instead.

>          ProxyPass  http://192.168.1.4/ 
>          ProxyPassReverse   http://192.168.1.4/
>      </Location>
>    </VirtualHost>
> 
>    <VirtualHost *:80>
>      ServerName node4
>      ErrorLog /var/log/httpd/error_log
>      TransferLog /var/log/httpd/access_log

I also suggest using separate log files for separate servers, just to keep 
things clear.

> And my Reverse Proxy can see both of Apache web servers:

Good.

> On Wednesday, March 17, 2021, 05:15:35 PM GMT+3:30, Antony Stone wrote:
> 
> Show us what your configuration looks like now, and also tell us how you
> are testing it, what you expect the results to be, and what results you
> actually get.

You've done the first part, thank you.  How about the next parts?


Antony.

-- 
3 logicians walk into a bar. The bartender asks "Do you all want a drink?"
The first logician says "I don't know."
The second logician says "I don't know."
The third logician says "Yes!"

                                                   Please reply to the list;
                                                         please *don't* CC me.

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