Caddyfile 458 B

12345678910111213141516171819202122232425262728
  1. {
  2. # Debug
  3. {$CADDY_DEBUG}
  4. frankenphp {
  5. #worker /path/to/your/worker.php
  6. {$FRANKENPHP_CONFIG}
  7. }
  8. }
  9. :8080
  10. route {
  11. root * /symfony/public
  12. # If the requested file does not exist, try index files
  13. @indexFiles file {
  14. try_files {path} {path}/worker.php worker.php
  15. split_path .php
  16. }
  17. rewrite @indexFiles {http.matchers.file.relative}
  18. # FrankenPHP!
  19. @phpFiles path *.php
  20. php @phpFiles
  21. respond 404
  22. }