• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Proxy only to an internal directory (e.g., show that it is not a subdirectory)

Scheduled Pinned Locked Moved Cache/Proxy
1 Posts 1 Posters 304 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    nfld_republic
    last edited by nfld_republic Jun 25, 2021, 2:48 PM Jun 25, 2021, 2:48 PM

    Hi Folks,

    I'm in the process of removing my nginx reverse proxy and using haproxy on my pfSense box. I have an internal site (actually, an IoT device) that I want externally to be directed to a specific subdirectory. In nginx, it was easy to do:

    location / {
    		include proxy_params;
    		proxy_pass http://internal_server/subdirectory/;
    		allow all;
    	}
    

    When connecting to the site, all that shows up in the web browser is https://site.external.com/ rather than https://site.externalcom/subdirectory

    Based on my experimentation, this isn't a redirect. I banged my head off this for a week with Google University. I've found a fair number of people asking the same thing but there have been no responses.

    Is this unobtainium or am I missing someting fundemental?

    Thanks!

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received