Navigation

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

    Squid reverse proxy - redirect subdirectories

    pfSense Packages
    1
    1
    1238
    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.
    • H
      heychris last edited by

      All,

      Thanks for all the hard work.  I'm a big fan of pfsense.

      Despite many hours of searching I'm having a problem with squid reverse proxy.

      I am trying to redirect a url  mydomain.com/mydirectory  to an internal server 192.168.2.11/mydirectory.

      The problem is  there are icons which exist in 192.168.2.11/icons

      Initially I tried a mapping.  I made the URI to match  .mydomain.com .mydomain.com/mydirectory
      www.mydomain.com http://www.mydomain.com/ ^http://www.mydomain.com/mydirectory/.*$

      I don't fully understand the syntax of the regex.

      My problem - any subdirectory of mydirectory  such as www.mydomain.com/icons/icon.gif  gets translated to 192.168.2.11/mydirectory/icons/icon.gif

      So I removed the mapping and tried a redirect.

      blocked domain (unsure why it's called that)  www.mydomain.com
      regex - I tried both ^/$  and ^/mydirectory/$
      redirect - 192.168.2.11/mydirectory

      This has the same result..    www.mydomain.com/icons/icon.gif  gets translated to 192.168.2.11/mydirectory/icons/icon.gif

      any help would be appreciated.

      Chris

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Products

      • Platform Overview
      • TNSR
      • pfSense
      • Appliances

      Services

      • Training
      • Professional Services

      Support

      • Subscription Plans
      • Contact Support
      • Product Lifecycle
      • Documentation

      News

      • Media Coverage
      • Press
      • Events

      Resources

      • Blog
      • FAQ
      • Find a Partner
      • Resource Library
      • Security Information

      Company

      • About Us
      • Careers
      • Partners
      • Contact Us
      • Legal
      Our Mission

      We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

      Subscribe to our Newsletter

      Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

      © 2021 Rubicon Communications, LLC | Privacy Policy