I am trying to serve static files from a folder while proxying actual requests to another application. My current Caddyfile looks like this
domain.com {
root /var/www/domain.com
proxy / localhost:8000 {
transparent
except /static/
#the static files are at /var/www/domain.com/static/
}
}
I’ve tried changing the permission of everything in the /var/www/domain.com folder. Currently all files within that folder belong to root:www-data, and www-data is the user running caddy.
I can see that he requests are not making it to the proxied application so they must be getting blocked by caddy. What should I be doing differently?