Proxy-Server für mehrere Webserver
3 users upvote it!
4 answers
Machine translated
1 like
Machine translated
1 like
I know and use Cloudfare. However, in this case I need to install something on my internal network that is the one that has only a public IP. I'm trying nginx as suggested in another answer. Then I tell my experience.
I know and use Cloudfare. However, in this case I need to install something on my internal network that is the one that has only a public IP. I'm trying nginx as suggested in another answer. Then I tell my experience.
Machine translated

You can achieve this by using a reverse proxy server. This type of server forwards client requests to the appropriate backend server based on the URL path. One simple and popular tool for this purpose is Apache HTTP Server with mod_proxy module enabled. Here is a basic configuration example: html ServerName example.com ProxyPass /server1/ http://server1-ip/ ProxyPassReverse /server1/ http://server1-ip/ ProxyPass /server2/ http://server2-ip/ ProxyPassReverse /server2/ http://server2-ip/
In this configuration, requests to example.com/server1/ will be forwarded to server1 and requests to example.com/server2/ will be forwarded to server2. You can add more ProxyPass directives for additional backend servers as needed. This way, you can keep your existing web servers untouched while achieving the desired forwarding functionality.
You can achieve this by using a reverse proxy server. This type of server forwards client requests to the appropriate backend server based on the URL path. One simple and popular tool for this purpose is Apache HTTP Server with mod_proxy module enabled. Here is a basic configuration example: html ServerName example.com ProxyPass /server1/ http://server1-ip/ ProxyPassReverse /server1/ http://server1-ip/ ProxyPass /server2/ http://server2-ip/ ProxyPassReverse /server2/ http://server2-ip/
In this configuration, requests to example.com/server1/ will be forwarded to server1 and requests to example.com/server2/ will be forwarded to server2. You can add more ProxyPass directives for additional backend servers as needed. This way, you can keep your existing web servers untouched while achieving the desired forwarding functionality.
Machine translated