ad 1. ano, jde to
ad 2. ano, umi
proste pridas novy virtualhost stylem
server {
listen 80 default;
listen [::]:80 default ipv6only=on;
server_name domena2.tld;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://prvni_ip:80/;
}
}
server {
listen 80 default;
listen [::]:80 default ipv6only=on;
server_name domena2.tld;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://druha_ip:80/;
}
}
pro https analogicky