Reverse Proxy on OPNsense

Started by jorgevisentini, April 11, 2019, 03:40:56 PM

Previous topic - Next topic
Hi all.

Sorry my english.

I am try up configure the nginx reverse proxy, but i am failed...
I am following the documentation (https://docs.opnsense.org/manual/reverse_proxy.html)

I have 1 server (site.domain.local) with 2 vhosts on port 80, (site.domain.local/site1 and site.domain.local/site2).
I would like that access throught on OPNsense, for exemple... site1.domain.local redirect for site.domain.local/site1 and site2.domain.local redirect for site.domain.local/site2

With Apache I know configure, with Nginx don't.

Someone would like try help me?
Thank you.

Just use this Tutorial (short version:

https://docs.opnsense.org/manual/how-tos/nginx.html

Configure Upstream server
Configure an Upstream with the configured upsteam server.
Create a location with the url match "/" and configure it to use the upstream

now for each vhost:
create a http server with the defaults and enter the hostname and the location block from previous step.

Thank you for your reply.

The problem dont was the nginx... the problem was the web server....

Sorry for my mistake.