Skip to content
This repository has been archived by the owner on Oct 6, 2018. It is now read-only.

URL prefix? #25

Closed
jpotter opened this issue Jun 30, 2014 · 2 comments
Closed

URL prefix? #25

jpotter opened this issue Jun 30, 2014 · 2 comments
Milestone

Comments

@jpotter
Copy link

jpotter commented Jun 30, 2014

Is there a way to run kafka-web-console with a URL prefix? E.g. so that all urls and requests start with something like /kafka-web? This would allow us to proxy traffic to it from behind an https server that we use for restricting access into prod (we proxy to other web consoles under other URLs.)

Right now, requests are full-path, i.e.:
link rel="stylesheet" media="screen" href="/assets/stylesheets/custom.css"

Thanks,
Jeff

@cjmamo
Copy link
Owner

cjmamo commented Jul 1, 2014

One way to solve this problem Jeff might be to use Apache HTTP server along with mod_rewrite to rewrite the URLs. More likely, you will want something like this: http://stackoverflow.com/questions/9994917/setting-a-custom-root-url-in-play-2-0. I'm about to commit a change to master that will prevent the links from breaking when you set application.context.

@cjmamo cjmamo closed this as completed in 8eff87f Jul 1, 2014
@cjmamo cjmamo added this to the v2.1.0 milestone Jul 1, 2014
@jpotter
Copy link
Author

jpotter commented Jul 1, 2014

Thanks, Claude. I downloaded head, did "play dist", and fired up that with "-Dapplication.context=/kafka/", and it works! Much appreciated.

(mod_rewrite wouldn't work because the HTML documents had references to absolute paths under "/assets")

-Jeff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants