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 311 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.
    • nfld_republicN
      nfld_republic
      last edited by nfld_republic

      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
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.