question on forwarding web traffic to different PVE guests

  • Thread starter Thread starter npereira
  • Start date Start date
N

npereira

Guest
Not sure if anyone will be able to help but here is what i need to do:
web1.mydomain.com resolves to 209.5.5.5 which is my public IP on the external side of my router. Router is setup to forward (port forwarding) all port 80 based traffic to internal ip 192.168.1.10 (my PVE system) which I want that server to lookup the request, and for web1 forward to 192.168.1.101, for web2 to .102 etc....

how can i acheive this? What do i need to use?
 
You may use the Apache and mod_rewite or proxy balancer for this, dependend on what in detail you want to axchieve.
You have to enable a couple of modules for that (with a2enmod)
 
As i explained i need to redirect somehow the traffice for web1.mydomain.com from proxmox server to the vm that is on ip 192.168.1.101
For web2.mydomain.com it needs to go to .102
 
As i explained i need to redirect somehow the traffice for web1.mydomain.com from proxmox server to the vm that is on ip 192.168.1.101
For web2.mydomain.com it needs to go to .102
Hi,
you can also use the reverse proxy pound for this (http://www.apsis.ch/pound )
I use them successful some times.
In the config of pound you can define, which urls schould forwarded to which IP/Port.

Udo
 
Rhanks for that. That may be the answer to my issues. Thanks for posting!