Anyone got Magento 2 to run on Caddy webserver?

My site is loaded correctly over SSL, but all requests to static files fail with 404. I’m in developer mode.

If you managed to get Magento 2 working with Caddy, can you post your Caddyfile? I can’t get static files to load, here is part of my Caddyfile for static assets:

 root * /var/www/magento/pub file_server # Reverse proxy to FastCGI server php_fastcgi 127.0.0.1:9820 try_files {path} /index.php?{query} # Static file handling with caching policies @staticAssets { path *.ico *.jpg *.jpeg *.png *.gif *.svg *.js *.css *.swf *.eot *.ttf *.otf *.woff *.woff2 } header @staticAssets Cache-Control "public, max-age=31536000" # 1 year handle_path /static/* { @rewriteCond { path_regexp version versiond*/(.*) } rewrite @rewriteCond /static.php?resource={re.version.1} } 

submitted by /u/Christosconst
[link] [comments]