Comments (6)
Why do you need such feature?
from charon-spring-boot-starter.
I'm using Bloomreach CMS which uses 2 different applications that need to be deployed on an application server. These applications need to be deployed under specific context paths (/site and /cms respectively). Of course no one wants to deploy their site at /site, so you need to reverse proxy this. However, Bloomreach went all their way to make it impossible to efficiently host this stuff. So after you made the site available at contoso.com/ , contoso.com/cms still won't work fully. Instead, you need to bind it under cms.contoso.com and have a reverse proxy for that as well.
Because of all the reverse proxy hell required to get Bloomreach too work (goes much beyond the standard capabilities of a load balancer like AWS EC2's one), I've decided to just deploy one extra WAR into the container with the reverse proxies for both the site and CMS. For this I need to be able to use different proxy configurations for different requested hostnames.
from charon-spring-boot-starter.
Ok. Will you manually set the Host HTTP header in HTTP client when sending request to server that uses Charon?
Is it even possible?
from charon-spring-boot-starter.
To be more clear. What I see is:
Client -> Charon app (running behind some IP/domain) -> Outgoing servers (running behind some IP/domain)
Now, if you want the charon app to receive requests with Host header different than its IP/domain, you must set the header manually.
from charon-spring-boot-starter.
The client connects through a browser, which specifies the requested host as part of the Request URL.
So both cms.contoso.com and contoso.com resolve to the proxy IP running the Charon app. Based on the requested host (set by the browser in the request URL), the proxy forwards the request to the appropiate URL.
from charon-spring-boot-starter.
Ok, I see the point now.
from charon-spring-boot-starter.
Related Issues (20)
- Documentation out of date HOT 1
- sorry some wrong posting.
- RegexRequestPathRewriter.forward fails for URIs with Blank (%20) HOT 7
- RegexRequestPathRewriter rewrites decoded path to encoded HOT 1
- migrating from charon 3 to 4 HOT 4
- Rewrite paths in location headers HOT 4
- Include port in X-Forwarded-Host header if its not the standard port for the scheme HOT 1
- Should not add Content-Type and Content-Length headers to requests with empty body HOT 6
- Exceeded limit on max bytes to buffer : 262144 HOT 2
- Forwarding 'x-www-form-urlencoded' request removes form data HOT 1
- forward vue project have error java.net.SocketTimeoutException: Connect timed out
- HttpRequestMapper sets an empty byte array body in case of GET requests HOT 2
- UserValidator
- could not working in war package mode. HOT 1
- Future stability / maintenance HOT 2
- Dynamic route request
- response header [Content-Disposition] has been removed from the response HOT 1
- Regex Request Path Rewriter HOT 2
- Requests are not forwarded to subdomains 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 charon-spring-boot-starter.