Not Working with Symbolic Link #1565

Closed
opened 2026-02-05 01:16:53 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ghost on GitHub (Mar 3, 2020).

Describe the bug
I have successfully installed BookStack, yet I can only properly use it without a SymbolicLink. Using a symlink only shows me the landing page and as soon as I click on a link I get an Internal Server Error. The Apache Error Log tells me I have exceeded the maximum amount of allowed redirects but I was not able to get a stack trace on what's going on.

Steps To Reproduce
Steps to reproduce the behaviour:

  1. Install BookStack
  2. Setup a symlink to the public folder
  3. Visit BookStack, click on a link

Expected behavior
I expect BookStack to work the same with the symbolic link without throwing an error.

Screenshots
If applicable, add screenshots to help explain your problem.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.28.2
  • PHP Version: 7.3
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
Add any other context about the problem here.

Originally created by @ghost on GitHub (Mar 3, 2020). **Describe the bug** I have successfully installed BookStack, yet I can only properly use it without a SymbolicLink. Using a symlink only shows me the landing page and as soon as I click on a link I get an Internal Server Error. The Apache Error Log tells me I have exceeded the maximum amount of allowed redirects but I was not able to get a stack trace on what's going on. **Steps To Reproduce** Steps to reproduce the behaviour: 1. Install BookStack 2. Setup a symlink to the public folder 3. Visit BookStack, click on a link **Expected behavior** I expect BookStack to work the same with the symbolic link without throwing an error. **Screenshots** If applicable, add screenshots to help explain your problem. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 0.28.2 - PHP Version: 7.3 - Hosting Method (Nginx/Apache/Docker): Apache **Additional context** Add any other context about the problem here.
Author
Owner

@ghost commented on GitHub (Mar 3, 2020):

Adding
RewriteBase /

to the .htacces in
/BookStack/public

seems to fix the issue.

@ghost commented on GitHub (Mar 3, 2020): Adding `RewriteBase /` to the .htacces in `/BookStack/public` seems to fix the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1565