Closed 13robin37 closed 1 year ago
Hi @13robin37, Just tested subdirectory usage on a Windows 10 VM and XAMPP, and all worked fine and as expected.
```apache
I thought maybe your issue could be the trailing slash on the second directory block, but I wasn't able to replicate your issue via adding that to my config.
bookstack
folder left there that could be interfering. Yea, basically same config as I have used.
Regarding config block, I have multiple aliases under that same domain which all work fine. No folders under xampp/htdocs as well.
As I plan to migrate this to a container environment in the near future anyway, that problem should be solved then.
For now I've set
Redirectmatch 301 ^/bookstack/$ https://domain/bookstack/index.php
to fix this the dirty way. Let's close this for now, most likely an issue with the vhost config at some point but I don't want to waste your time on that. Thank you for your help!
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
Sadly I am unable to get the subdirectory config for the homepage to work. BookStack works just fine in all aspects except the homepage which isn't rendered properly (error 404).
When I try to access subpages, books, settings, etc. everything is working as expected. When I try to access https://domain/bookstack it displays "page" not found. When I access https://domain/bookstack/index.php directly the desired homepage is displayed. I've played with the homepage settings under customization without any effect (displaying shelves, custom page, books as the homepage).
APP_URL is set to https://domain/bookstack
Current subdir config within the httpd-ssl.conf (from https://www.bookstackapp.com/docs/admin/subdirectory-setup/):
I have other applications under D:/xampp/htdocs/ so I moved it to another path to avoid some mixup with .htaccess directives.
Current .htaccess under D:/xampp/webdir/bookstack/public (even tested adding a RewriteRule there, otherwise stock):
Tested with APP_DEBUG=true as well but BookStack doesn't throw any errors so I think this is based on some config error on my side. Other hosted apps work just fine, I even run other apps in Directories which don't have any issues. Any idea?
Exact BookStack Version
v23.08.2
Log Content
access.log:
"GET /bookstack/ HTTP/2.0" 404 7372
error.log with LogLevel alert rewrite:trace6:
Hosting Environment
Windows with XAMPP. Apache/2.4.56 (Win64) OpenSSL/1.1.1t PHP/8.1.17