NGINX Reverse Proxy - subdomains

Started by p3tter, March 01, 2022, 08:12:38 PM

Previous topic - Next topic
Hi,
I'm pretty new on the OPNsense side, and im trying to configure the NGNIX plugin as a reverse proxy for subdomains.

what I want is to map:
x.root.domain -> 192.168.1.10
y.root.domain -> 192.168.1.11

if I only have 1 location and use / as the URL pattern it works for that single sub domain.
I have tried with x.root.domain/, x.root.domain/* etc with all the different match types without any success.

any tips would be appreciated!
Thanks,
Peter

Add everything twice. From the upstream server to the HTTP server.

same issue here...

a have several service with a acme wildcart certs...

I have 3 HTTP server, 3 locations, 3 upstreams und 3 upstreams server..

eg. gotify.xyz.com --> local lan:7478
bookstack.xyz.com --> laocal lan:8888

the problem is, that only the first entry (gotify.xyz.com) is working. when I want to access bootstack.xyz.com, I also got to gotify.

Does anybody know how to solve that?

thanks


you mean restart button - between start and stop? to reload the config? I alreay did that multiple times...

what is interessting: when I want to access abc.domain.com and get to 123.domain.com (which I dont want), I get a log entry with a "referer: 123.domain.com".

where does the referrer come from?

I simply want a setup (with a wildcard cert)

abc.domain.com -> to LAN1:port1
yuo.domain.com -> to LAN3:port
123.domain.com -> to LAN1:port2
890.domain.com -> to LAN2:port (with HTTPS)

but I can only achieve to reverse proxy the first two cases...

thanks

not restart - that will *NOT* regenerate the config. It will do what service control is expected to do - restart only.
The reconfigure button is *ALWAYS* on the bottom of the pages or it will be done when clicking the apply button.