App only works if index.php is present in url #4058

Closed
opened 2026-02-05 08:05:44 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @Macxion on GitHub (Aug 30, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I just installed BookStack, followed these instructions to configure apache, but using "/docs" alias. App is openning in browser but always redirects to "/docs/login" having the message "Page not found". Apache mod rewrite is enabled and the 000-default-conf in apache has exactly configuration in the link provided. When I put "index.php" right after /docs, ie: docs/index.php/login, the app works, but the problem is that app links don't use index.php, wich configuration do I have to make for this work correctly? All environment parameter are correct, the problems is just this index.php.

  • My .env APP_URL is http://xxx.xxx./docs
  • Followed configuration link to edit 000-default.conf
  • a2enmod rewrite command says that module is already in use

Exact BookStack Version

I don't know, could not login

Log Content

No errors

PHP Version

8.1

Hosting Environment

Debian 11

Originally created by @Macxion on GitHub (Aug 30, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I just installed BookStack, followed [these](https://www.bookstackapp.com/docs/admin/subdirectory-setup/#apache-setup) instructions to configure apache, but using "/docs" alias. App is openning in browser but always redirects to "/docs/login" having the message "Page not found". Apache mod rewrite is enabled and the 000-default-conf in apache has exactly configuration in the link provided. When I put "index.php" right after /docs, ie: docs/index.php/login, the app works, but the problem is that app links don't use index.php, wich configuration do I have to make for this work correctly? All environment parameter are correct, the problems is just this index.php. - My .env APP_URL is http://xxx.xxx./docs - Followed configuration link to edit 000-default.conf - a2enmod rewrite command says that module is already in use ### Exact BookStack Version I don't know, could not login ### Log Content No errors ### PHP Version 8.1 ### Hosting Environment Debian 11
OVERLORD added the 🐕 Support label 2026-02-05 08:05:44 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4058