From: Thomas Windscheif Date: Mon, 3 Jun 2024 19:52:43 +0000 (+0200) Subject: Update subdirectory-setup.md X-Git-Url: http://source.bookstackapp.com/website/commitdiff_plain/refs/pull/188/head Update subdirectory-setup.md add tip for NOT pointing DocumentRoot to BookStack folder in Apache configuration --- diff --git a/content/docs/admin/subdirectory-setup.md b/content/docs/admin/subdirectory-setup.md index cd5afc3..2ee08f4 100644 --- a/content/docs/admin/subdirectory-setup.md +++ b/content/docs/admin/subdirectory-setup.md @@ -41,6 +41,11 @@ The next step is to alter your Apache configuration to serve any requests to you Within the `` tags of this file you'll need to add the below additional configuration. Note, the `` tags should already exist and the `...` parts represent existing rules. You should only need to copy the middle section: +> [!TIP] +> Make sure that DocumentRoot does not point to the path where you installed BookStack in. +> This is the case, if you used the install script. +> You may comment out DocumentRoot, create a new folder and define a path like /var/www/other-site + ```apache @@ -146,4 +151,4 @@ Once done save your config files. You can often test your Nginx config is valid sudo systemctl restart nginx.service ``` -Follow the above [BookStack Setup](#bookstack-setup) to add your new URL to your BookStack configuration. Once done you should be able to access your BookStack instance at your desired sub-path. \ No newline at end of file +Follow the above [BookStack Setup](#bookstack-setup) to add your new URL to your BookStack configuration. Once done you should be able to access your BookStack instance at your desired sub-path.