You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ray Jender <ra...@yahoo.com.INVALID> on 2018/06/05 20:12:17 UTC

[users@httpd] mod_rewrite or reverse proxy?

 

So, I have an Ubuntu 16.04 server (host) with Apache 2.4.18

I have created 4 LXD containers on this server.

Each container has media server app installed.

I want to be able to access a container based on the input query.

 

So if I browse to http:// <http://"host> "host server"/LPC1,  I access
container 1.

If I browse to http://host server"/LPC2,   I access container 2.

 

Is this possible with mod_rewrite?

 

Note that the host and containers can ping each other's IP.

 

I want to be able to do something like this:

 

RewriteEngine on

Redirect "localhost/LPC1"  "rtmp://10.22.175.19:1935"

 

The host IP is DHCP (192.168.0.x) from my LAN and the container IP is DHCP
from LXD (10.x.x.x)

 

 

So,  10.22.175.19 is container 1.  How can someone on the internet access
the 10.22.175.19 container?

 

Hope I made sense with all this!

 

Thanks,


Ray