-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to change the root prefix for NodeJS (Phusion Passenger compatibility) #10587
Comments
Will the configuration key
|
Hello, Example:
With an entry prefix with a proxy which doesn't support url rewrite:
Without an entry prefix with a proxy which doesn't support url rewrite:
|
This request is totally reasonable, but it isn't a high priority for us at this time. We'd be more than happy to review a pull request for this if anyone's feeling ambitious. |
I believe with #16724 we now have support for this. A combination of server.basePath and server.rewriteBasePath: true will perform the rewrite on the Kibana server (instead of requiring a proxy rewrite). Closing this one out, let me know if there's any issues. |
The idea is to add an option to change the prefix of Kibana on NodeJS.
For example, it could allow me to access Kibana with the following URL:
http://localhost:5601/kibana/node1
instead ofhttp://localhost:5601/
Why do I want to do this instead of using a proxypass ? Because it's required by some modules like Phusion Passenger.
Since Kibana uses a single library for all HTTP request handling (Hapi), this could easily be added by using the global option for all HTTP routes
server.realm.modifiers
:And just an other modification for the internal Elasticsearch proxy, the prefix must be removed before passing the URL to Elasticsearch:
Kibana 5.2.1 (official RPM file)
Elasticsearch 5.2.1
OS : RHEL 6.8
The text was updated successfully, but these errors were encountered: