Skip to content

Instantly share code, notes, and snippets.

@louiszuckerman
Last active December 11, 2015 20:59
Show Gist options
  • Save louiszuckerman/4658921 to your computer and use it in GitHub Desktop.
Save louiszuckerman/4658921 to your computer and use it in GitHub Desktop.
kibana on passenger in a subdirectory of an existing apache virtual host
# These instructions are derived from the Passenger documentation,
# http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rack_to_sub_uri
# And tested with kibana git master on 1/28/13
# First, create a symlink from the existing virtualhost's
# document root to your kibana installation's public/static
# directory. for example,
# ln -s /path/to/kibana/public /var/www/kibana
# kibana 0.2.0 and earlier will have a /static directory
# instead of /public
# Now add these lines to your existing apache virtualhost
RewriteEngine On
RewriteRule /kibana$ /kibana/ [R=301]
RackBaseURI /kibana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment