Re: Apache Reverse Proxy for more than one website.

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

 



I created two files under "/etc/httpd/conf.d" directory:

reverse_proxy1.conf
reverse_proxy2.conf

The content of reverse_proxy1.conf file:
<VirtualHost *:80>
        ProxyPreserveHost On
        ProxyPass / http://192.168.1.20/
        ProxyPassReverse / http://192.168.1.20/
</VirtualHost>

The content of reverse_proxy2.conf file:

<VirtualHost *:80>
        ProxyPreserveHost On
        ProxyPass / http://192.168.1.4/
        ProxyPassReverse / http://192.168.1.4/
</VirtualHost>

Logs tell me:

# cat /var/log/httpd/error_log
[Wed Mar 17 00:36:26.001605 2021] [proxy:error] [pid 10705:tid 10753] (113)No route to host: AH00957: HTTP: attempt to connect to 192.168.1.20:80 (192.168.1.20) failed
[Wed Mar 17 00:36:26.001690 2021] [proxy_http:error] [pid 10705:tid 10753] [client 10.0.3.2:51986] AH01114: HTTP: failed to make connection to backend: 192.168.1.20

# cat /var/log/httpd/access_log
10.0.3.2 - - [17/Mar/2021:00:36:22 +0330] "GET / HTTP/1.1" 503 299 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Safari/537.36"


When I remove one of the .conf file, then it worked.



On Wednesday, March 17, 2021, 12:34:50 AM GMT+3:30, Eric Covener <covener@xxxxxxxxx> wrote: 





On Tue, Mar 16, 2021 at 5:00 PM Jason Long <hack3rcon@xxxxxxxxx.invalid> wrote:
>
> It show me below error:
> The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later
>
> Why?

We don't know, we didn't read the error log either.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


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