]> BookStack Code Mirror - website/commitdiff
Update subdirectory-setup.md twindscheif/patch-1 188/head twindscheif/patch-1
authorThomas Windscheif <redacted>
Mon, 3 Jun 2024 19:52:43 +0000 (21:52 +0200)
committerGitHub <redacted>
Mon, 3 Jun 2024 19:52:43 +0000 (21:52 +0200)
add tip for NOT pointing DocumentRoot to BookStack folder in Apache configuration

content/docs/admin/subdirectory-setup.md

index cd5afc305cff21e7a8fb7466dc909255e7e805e4..2ee08f49eac5e333eb4efb74a65fe3afd386de56 100644 (file)
@@ -41,6 +41,11 @@ The next step is to alter your Apache configuration to serve any requests to you
 
 Within the `<VirtualHost>` tags of this file you'll need to add the below additional configuration. Note, the `<VirtualHost>` 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
 <VirtualHost *:80>
 
@@ -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.