URL rewrites inside HTML content? #11536
Unanswered
marcosimioni
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I believe my issue is related to #4716, but the proposed solution seems to work fine for HTTP 302 responses, but not for URLs located inside the HTML Content. I'll investigate further, but if anybody has any pointer it would be more than welcome. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I love teleport and it has a lot of cool features, but I'm struggling now with one specific application.
This application renders in its responses a bunch of
href
s having an hardcoded url, let's sayapplication.example.com:443
.I'm using teleport to expose my application with the public URI
application.teleport.example.com:8443
(notice the domain and also the port number) and some areas work fine.However, Teleport is not rewriting those
href
s values, so other features are not working because the browser of my end-user is trying to retrieve those assets viaapplication.example.com:443
, which of course does not work (remember? the application is exposed viaapplication.teleport.example.com:8443
).The expected behavior would be that all references to
application.example.com:443
contained in the application responses should be rewritten toapplication.teleport.example.com:8443
, or in other words what is described for instance here https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing (In addition, if internal application inserts links into its response HTML that link to elsewhere in those applications, those links should be modified before the response is returned to the client. For example, a page from http://webmail/default.aspx might contain a link like this:
).Is there a way to enable such URL rewriting in Teleport? Or is teleport only able to rewrite URLs on HTTP forwards?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions