I recently was successful at setting up a reverse proxy with Nginx by following this guide: https://forum.opnsense.org/index.php?topic=19305.0
The issue I have run into is that I would like to take that setup and link to different local servers and ports for different purposes.
For example:
https://stuff.example.com > 172.16.0.1 : 80
https://stuff.example.com/docs > 172.16.0.1 : 8080
https://stuff.example.com/music > 172.16.0.5 : 80
And so on.
I thought that adding a Location and specifying URL Pattern and Rewrite rules would enable this, however, either that is not the correct method, or I have been doing it wrong.
How can I accomplish this type of setup? Is it better to simply use multiple subdomains and proxy each individually?
The issue I have run into is that I would like to take that setup and link to different local servers and ports for different purposes.
For example:
https://stuff.example.com > 172.16.0.1 : 80
https://stuff.example.com/docs > 172.16.0.1 : 8080
https://stuff.example.com/music > 172.16.0.5 : 80
And so on.
I thought that adding a Location and specifying URL Pattern and Rewrite rules would enable this, however, either that is not the correct method, or I have been doing it wrong.
How can I accomplish this type of setup? Is it better to simply use multiple subdomains and proxy each individually?
"