Caddy Webserver

    # Bookstack
    @bookstack_statics {
        path /bookstack/*.png /bookstack/*.ico /bookstack/dist/* /bookstack/libs/*
    }
    handle @bookstack_statics {
        file_server
    }
    redir /bookstack /bookstack/
    handle /bookstack/* {
        rewrite /bookstack/* /bookstack/index.php?{query}&p={path}
        php_fastcgi /bookstack/* unix//var/run/php/php7.4-fpm.sock {
            resolve_root_symlink
        }
    }

Revision #1
Created 8 November 2021 09:45:23 by Georg Lehner
Updated 8 November 2021 09:47:41 by Georg Lehner