OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Reverse Proxy on OPNsense
« previous next »
  • Print
Pages: [1]

Author Topic: Reverse Proxy on OPNsense  (Read 5121 times)

jorgevisentini

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Reverse Proxy on OPNsense
« on: April 11, 2019, 03:40:56 pm »
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.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Reverse Proxy on OPNsense
« Reply #1 on: April 11, 2019, 05:30:26 pm »
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.
Logged

jorgevisentini

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Re: Reverse Proxy on OPNsense
« Reply #2 on: April 15, 2019, 11:35:02 pm »
Thank you for your reply.

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

Sorry for my mistake.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Reverse Proxy on OPNsense
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2