OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • nginx domain subfolder path configuration
« previous next »
  • Print
Pages: [1]

Author Topic: nginx domain subfolder path configuration  (Read 3954 times)

jezza007

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
nginx domain subfolder path configuration
« on: November 22, 2022, 09:31:19 pm »
Hi, if someone could help please, I have read the tutorial and successfully setup nginx with letsencrypt and the domain fqdn and base upstream server works perfectly on https://mydomain.com

I am trying to configure a second location which points to a second internal web service with a subfolder of the primary domain
https://mydomain.com/filemanger to point to another upstream server on https://192.168.1.5/

I have configured the second upstream location with (see screenshot)
URL pattern /filemanager/
path prefix /

so that when get https://mydomain.com/filemanager/ it directs to https://192.168.1.5/
It seems to start to load the page but then gets a 500 gateway timeout

Is this the correct way to configure for subfolders?
Thank you


Logged

Fright

  • Hero Member
  • *****
  • Posts: 1777
  • Karma: 164
    • View Profile
Re: nginx domain subfolder path configuration
« Reply #1 on: November 23, 2022, 01:31:50 pm »
Hi
path prefix option allows to only add part of the path but not to delete..
if you need to cut "filemanager" from request then you need URL Rewrite imho
Logged

adson.junio

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: nginx domain subfolder path configuration
« Reply #2 on: July 24, 2023, 02:03:53 am »
Hi

Someone managed to solve this scenario by web NGINX Proxy UI Opnsense reverse?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • nginx domain subfolder path configuration
 

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