hosting multiple websites behind one IP

Keith Miller

Well-Known Member
Aug 12, 2018
96
2
48
Phoenix, AZ
I have been a subscriber to Proxmox now for around 4-5 years and love it,
how would I host multiple websites behind one IP using proxmox

not an easy question but maybe there is a good Youtube instruction on setting this up
I have been playing with Virtualmin since it has install scripts that make the installation of some of my applications very easy
ie 2 photo hosting websites using Piwigo, create server, and run install script that's all

is there a template for like Piwigo if not could one be created by the staff

Keith Miller
 
You usually set up a reverse proxy for this. You could use a apache2, nginx, haproxy or whatever for it in a LXC or VM. But you should know what you are doing. More beginner friendly might be to run a docker container with Nginx Proxy Manager (see here) as this will manage most things for you and you can use the webUI to configure it instead of manually creating SSL certificates, editing config files and so on.

So your router port-forwards all incoming internet traffic to port 80 and 443 to that LXC/VM that runs your reverse proxy. The reverse proxy will then decide, based on the referring domain, to which webserver the traffic should be forwarded. It then forwards the traffic to the local IP of the VM/LXC/host that is running the webserver that serves that domain. The webserver will answer the reverse proxy and the reverse proxy will then forward that answer over the router to the web client.
 
Last edited:
  • Like
Reactions: Onyxnz

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!