Caddy doesnt forward requests that look like files to fast-cgi

Am using caddy as both my dev and production server. So today i decided to change a certain photo on my app, it changed but it didn’t update, digging in to what caused the problem i found out that caddy doesn’t forward requests to the fast-cgi process if they look like files instead it issues a 404

Below is my caddy file,

tls off

fastcgi / php {
index index.php
root ./public

rewrite {
r \w*
ext /
to /index.php?{query}

errors storage/logs/error.log
log storage/logs/access.log

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.