nimrod wrote: > Hi, > > I'm running a web server inside an LXD container which is only > accessible from the host. I mapped the container's 80 port to the 82 > host's port, so I can access the container's web server as > http://host:82. The host itself runs Apache on the usual 80 port. What > I whis to get is something like this: > > http://host/path1 --> http://localip/path1 > http://host/path2 --> http://localip/path2 > > and so on and so forth. How can I do it?
You want Apache to act as a reverse proxy for the localip:port. https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html Note that your localip is the "backend" server. Use the Simple Reverse Proxy config with ProxyPass and ProxyPassReverse. -dsr-

