/Login Page Not Found #4055

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

Originally created by @aszabonorbert 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

When I make a request with https://my.domain.com/kb url, it redirects the browser to the https://my.domain.com/kb/login page with designed "Page Not Found" message, it's obvious that is from BookStack, so index.php gets the request.
I tried the v23.06.2 and the v23.08 with no success.
My url /kb is alias to the docroot, that is /var/www/my.domain.com/BookStack/public.

Screenshot BookStack

Exact BookStack Version

v23.08

Log Content

    • 30/Aug/2023:19:49:10 +0000 "GET /kb/index.php" 302
    • 30/Aug/2023:19:49:10 +0000 "GET /BookStack/public/index.php" 404

PHP Version

8.1

Hosting Environment

Debian 11 with dockerized php-fpm

My apache config:

Alias /kb /var/www/my.domain.com/BookStack/public
<Directory /var/www/my.domain.com/BookStack/public>
    <FilesMatch "\.php$">
        SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost"

        Options FollowSymlinks
        AllowOverride None
        Require all granted

        RewriteEngine On

        # Handle Authorization Header
        RewriteCond %{HTTP:Authorization} .
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

        # Redirect Trailing Slashes If Not A Folder...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} (.+)/$
        RewriteRule ^ %1 [L,R=301]

        # Handle Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
    </FilesMatch>
</Directory>

My APP_URL=https://my.domain.com/kb
I set APP_DEBUG=true, but nothing is happening. The laravel log has only information about running artisan. There is no error in the apache log either.

Originally created by @aszabonorbert 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 When I make a request with https://my.domain.com/kb url, it redirects the browser to the https://my.domain.com/kb/login page with designed "Page Not Found" message, it's obvious that is from BookStack, so index.php gets the request. I tried the v23.06.2 and the v23.08 with no success. My url /kb is alias to the docroot, that is /var/www/my.domain.com/BookStack/public. ![Screenshot BookStack](https://github.com/BookStackApp/BookStack/assets/3910290/e9e4fa77-1322-4767-a1cc-488ddf6760a5) ### Exact BookStack Version v23.08 ### Log Content - - 30/Aug/2023:19:49:10 +0000 "GET /kb/index.php" 302 - - 30/Aug/2023:19:49:10 +0000 "GET /BookStack/public/index.php" 404 ### PHP Version 8.1 ### Hosting Environment Debian 11 with dockerized php-fpm My apache config: ``` Alias /kb /var/www/my.domain.com/BookStack/public <Directory /var/www/my.domain.com/BookStack/public> <FilesMatch "\.php$"> SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost" Options FollowSymlinks AllowOverride None Require all granted RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </FilesMatch> </Directory> ``` My APP_URL=https://my.domain.com/kb I set APP_DEBUG=true, but nothing is happening. The laravel log has only information about running artisan. There is no error in the apache log either.
OVERLORD added the 🐕 Support label 2026-02-05 08:05:30 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4055