Resolving works for both hosts if you mean this. And yes, site 1 isn't local, it's on IIS on another server. Also it works with server_name site1.example.com; and proxy_pass http://$host$uri; but this isn't exactly what I wanted to achieve.by prodigy_ - How to...
A portion of nginx.conf: server { listen 80; server_name site2.example.com; access_log /var/log/nginx/access.log; location / { proxy_pass http://site1.example.com; proxy_set_header X-Real-IP $remote_addr;by prodigy_ - How to...
![]() |
![]() |
![]() |
![]() |
|