mod_rewrite or reverse proxy?

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

 



 

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://”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

 


[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