I’m trying to get BookStack setup on my DO droplet, and it’s mostly running. But I’m not sure the rewrite rule is working as needed because putting in just the domain name gives me a 404 error, and manually adding /index.php redirects to /index.php/login, but all the images and the layout inside appear broken or missing. Has anyone successfully setup BookStack on Caddy? Below is my location block:
https://bs.domain.pw {
root /var/www/bs.domain.pw/BookStack/public
gzip
tls my@emailaddress.com
log /var/log/caddy/access.log
errors /var/log/caddy/errors.log
fastcgi / /var/run/php/php7.0-fpm.sock {
ext .php
split .php
index doku.php
}
rewrite / {
to {path} {path}/ /index.php?{query}
}
}
The installation documentation says:
Apache:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Nginx:
location / {
try_files $uri $uri/ /index.php?$query_string;
}