Comments (2)
This may happen because the href
s defined by the website are using absolute paths instead of relative ones (assuming there's no prefix), redirecting the browser to a url without your prefix.
Or the website could return a 3XX redirect response that sends the browser to a different path or a different host entirely.
Or the website could be using JavaScript that does redirects.
You can try to fight such things by rewriting the response html, rewriting the location headers, etc., but this is difficult to do reliably.
Ideally, you'll want the websites behind the proxy to play nice and not make assumptions that they'll never be behind a proxy (generally this means proxying sites you own).
The better approach is generally to make changes to the website itself by correcting how it generates links/redirects, relying on things like the x-forwarded
headers.
from reverse-proxy.
Closing as answered.
Feel free to reopen if there's something we missed.
from reverse-proxy.
Related Issues (20)
- Create method PickDestinationAsync in ILoadBalancingPolicy HOT 3
- How to map forwarder with `Host`? HOT 4
- Extra and not needed commas in documentation
- Add the `IForwarderService` interface to override the implementation logic of `ForwarderMiddleware` HOT 1
- Strange behavior of Request.Url HOT 2
- Through the yarp proxy svn, the file name will appear 502 at noon, and no detailed errors can be seen HOT 2
- CORS HTTP 405 Status Code HOT 2
- I would like to be able to request from yarp a list of services HOT 1
- System.Net.Http.HttpRequestException: Connection refused (502 Response) HOT 1
- HttpSysDelegator - AddOrUpdateRules fails to add rule due to bug with WeakReference/GC
- The custom header does not work properly when it contains Chinese characters HOT 6
- ArgumentException: Invalid destination prefix. (Parameter 'destinationPrefix') HOT 3
- * domain names supported
- Troubleshooting Debugging Issue After .NET Framework Upgrade: Breakpoints Not Triggering in CMS HOT 1
- Whitelisting of custom Upgrade Headers HOT 2
- 2.2.0 Preview 1 release checklist
- Help Needed: Blank Screen Issue with Microsoft Reverse Proxy in .NET Core HOT 2
- Response not being sent for non-2xx status codes HOT 2
- Bearer token implementation from cookie HOT 1
- Memory leak with KubernetesClient HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reverse-proxy.