I have made a little more progress by embedding the location code within a server function. At least I don't get any errors when starting nginx now. But I am still not getting a redirection to my internal web servers. server { listen 80; server_name mydomain.com www.mydomain.com; root html; location /page1/ { rewrite ^/page1/(.*)$ http://10.100.0.163/$1 permaneby sniglet - How to...
Does anyone know how to modify the nginx.conf file to redirect to another host? I would like to direct http://mydomain.com/page1 and http://mydomain.com/page2 to separate hosts on my local network. mydomain.com/page1 should go to 10.100.0.163 and mydomain.com/page2 should go to 10.100.0.164. Here is what I added to the HTML section of the nginx.conf file on my Ubuntu server. ================by sniglet - How to...
![]() |
![]() |
![]() |
![]() |
|