Hello,
I installed and configure an Apache Web Server as a Reverse Proxy on CentOS 8. I created a Virtual Host file (reverse_proxy.conf) under the “/etc/httpd/conf.d” directory with below content:
I want to clear my question more:
I don’t need a load balance. Please consider below diagram:
The Internet ---> Apache Reverse Proxy ---> Apache Web Server 1 (IP: 1.2.3.4, Name: Yahoo.com)
---> Apache Web Server 2 (IP: 1.2.3.5, Name: Google.com)
I want my Reverse Proxy service to these web servers. Each servers has a different domain name and IP address. My Yahoo.com server maybe turned off or…but I want my Apache Reverse Proxy service to Google.com server.
But I got a same result!!
I want to have one Reverse Proxy server that service to some web servers that each of them has theirs domains and IPs.
I want to know, for 10 different websites that each of them has different IPs and domain names, I need 10 Reverse Proxy servers?
Yes. How else is the server supposed to know what traffic to route where?
As an aside, from my experience NGiNX is better at this than Apache. You might want to check that out.
You’d still to configure all hosts separately, but you get nice options like HTTP keepalive between the proxy and the servers, caching, etc, in a very readable format. Plus performance is better.
Thanks for sharing this link, it’s useful. And I agree with you that NgiNX is much better than Apache in this case. However, it was hard for me to create proxies via both apps. Don’t know why but every time it’s a kind of error when I try to configure a reverse proxy server for multiple web server.
Maybe the codes I usually use are wrong, but I’ve been always following guides from Github. I read on proxies.com that you can’t simply configure proxies on some of the old Apache versions. Strange…