Hello my setup is
network 192.168.1.0/24
1 public IP adress, domain and subdomain
1 VM webserver/apache2 with 192.168.1.110:8080
1 VM MAIB with 192.168.1.120
1 VM proxy/nginx with 192.168.1.150
1 router settings 192.168.1.150 ports 80 and 443 are forwarded
192.168.1.120 ports for MAIB open. (MIAB system message all green)
How to set reverse proxy on 192.168.1.150 to work with 192.168.1.110:8080 and 192.168.1.120:80
my config on proxy is
server {
listen 80;
listen [::]:80;
server_name xxxx.xx;
location / {
proxy_pass http://192.168.1.110:8080;
proxy_set_header Host $host;
}
}
server {
listen 80;
listen [::]:80;
server_name box.xxx.xx;
location / {
proxy_pass http://192.168.1.120:80;
proxy_set_header Host $host;
}
}
webserver works fine. MIAB doesnt do anything. without proxy MIAB works excellent.
I dont want to buy another IP for mailserver only.
thx for help