Welcome! Log In Create A New Profile

Advanced

How do I Reverse proxy to different sites and servers

Posted by stratege-0815 
How do I Reverse proxy to different sites and servers
August 13, 2019 01:18PM
Hello,
I did my first steps with nginx and set up a reverse proxy on a raspberry pi.

Until now it works the following way:

MyDyndnsdomain.com -> points to an internal IP Webcam 192.168.1.25

This works as expected using https with certbot and lets encrypt. But as a next step I want to expand the setup to multiple international servers, for example:

MyDyndnsdomain.com/cam1 -> points to an IP Webcam #1 192.168.1.25

MyDyndnsdomain.com/cam2 -> points to an IP Webcam #2 192.168.1.26

MyDyndnsdomain.com/Home -> points to an Webserver 192.168.1.27/html/Homepage

MyDyndnsdomain.com/webdav -> points to a WebDAV storage 192.168.1.28

Do I have to configure these as different virtual servers or are „locations“ what I need to look into?

Best regards

S
Re: How do I Reverse proxy to different sites and servers
August 16, 2019 09:04AM
You need for each of them a different "location" directive.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready