I have a PHP application that has a front controller, that has a single PHP file to handle requests. To deploy this application, I need to route all requests to this file, except for /assets/
:
http:// {
#...
fastcgi / 127.0.0.1:9000 php
rewrite {
if {path} not_starts_with /assets/
to {path} /index.php?{query}
}
}
Unfortunately, it appears that Caddy 0.10.3 (the latest version, at the time of this writing) doesn’t support not_starts_with
, is there something else I could use?