From cafa42e097f36c59cfc273f2af67b00180890256 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 3 Oct 2015 16:09:30 +0200 Subject: [PATCH] Document prefixed paths --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0253935..ce65545 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ It exposes a great API for changing the URL and reactively getting data from the * [Subscription Management](#subscription-management) * [IE9 Support](#ie9-support) * [Hashbang URLs](#hashbang-urls) +* [Prefixed paths](#prefixed-paths) * [Addons](#addons) * [Difference with Iron Router](#difference-with-iron-router) * [Migrating into 2.0](#migrating-into-20) @@ -637,6 +638,9 @@ WhenEverYourAppIsReady(function() { }); ~~~ +## Prefixed paths + +In cases you wish to run multiple web application on the same domain name, you’ll probably want to serve your particular meteor application under a sub-path (eg `example.com/myapp`). In this case simply include the path prefix in the meteor `ROOT_URL` environment variable and FlowRouter will handle it transparently without any additional configuration. ## Addons