-
Notifications
You must be signed in to change notification settings - Fork 55
Description
I am trying to mimic the following Apache2 configuration with Charon:
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/site/
ProxyPassReverse / http://127.0.0.1:8080/site/
ProxyPassReverseCookiePath /site /
I believe ProxyPass
can be replaced by regexRequestPathRewriter()
and ProxyPreserveHost
can be changed by including/excluding requestHostHeaderRewriter
.
It appears as if rootPathResponseCookiesRewriter
can be used for the ProxyPassReverseCookiePath
, however the paths that need to be placed and the path it needs to be changed into are not configurable. This could potentially be an interesting addition. Currently, replacing with root fulfills my needs, so I don't think I need this change right now.
Finally I am seeking a replacement for ProxyPassReverse
. This ensures Location, Content-Location and URI headers in the response are adjusted appropiately for the rewritten path. Is there a rewriter in Charon available that makes this possible?