{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/819","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/819/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/819/events","html_url":"https://github.com/mholt/caddy/issues/819","id":154687316,"number":819,"title":"h5ai on Caddy","user":{"login":"MSF-Jarvis","id":13348378,"avatar_url":"https://avatars.githubusercontent.com/u/13348378?v=3","gravatar_id":"","url":"https://api.github.com/users/MSF-Jarvis","html_url":"https://github.com/MSF-Jarvis","followers_url":"https://api.github.com/users/MSF-Jarvis/followers","following_url":"https://api.github.com/users/MSF-Jarvis/following{/other_user}","gists_url":"https://api.github.com/users/MSF-Jarvis/gists{/gist_id}","starred_url":"https://api.github.com/users/MSF-Jarvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSF-Jarvis/subscriptions","organizations_url":"https://api.github.com/users/MSF-Jarvis/orgs","repos_url":"https://api.github.com/users/MSF-Jarvis/repos","events_url":"https://api.github.com/users/MSF-Jarvis/events{/privacy}","received_events_url":"https://api.github.com/users/MSF-Jarvis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T11:04:46Z","updated_at":"2016-05-13T11:45:52Z","closed_at":null,"body":"I used to host my website on nginx, then httpd, finally @faddat referred me to caddy, and I just migrated yesterday. My homepage is up, being nothin' but a jekyll site, but having an issue with using lrsjng/h5ai, my caddyfile is this : \r\n```text\r\n#the homepage\r\nmsfjarvis.me:80 www.msfjarvis.me:80 {\r\n        root /var/www/html/\r\n        tls msfjarvis@gmail.com\r\n}\r\n\r\n#the downloads index\r\n#roms.msfjarvis.me:80 {\r\n#       root /var/www/ROMs/\r\n#       fastcgi / /var/run/php5-fpm.sock {\r\n#               ext     .php\r\n#               split   .php\r\n#               index   _h5ai/public/index.php\r\n#       }\r\n#       tls msfjarvis@gmail.com\r\n#}\r\n\r\nroms.msfjarvis.me:80, roms.msfjarvis.me:443 {\r\n        root /var/www/ROMs\r\n        log /root/access.log\r\n        errors /root/errors.log\r\n        fastcgi / /var/run/php5-fpm.sock php {\r\n        ext     .php\r\n        split   .php\r\n        index   _h5ai/public/index.php\r\n        }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/219021425","html_url":"https://github.com/mholt/caddy/issues/819#issuecomment-219021425","issue_url":"https://api.github.com/repos/mholt/caddy/issues/819","id":219021425,"user":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T11:45:51Z","updated_at":"2016-05-13T11:45:51Z","body":"Second, do a rewrite where you check for existance of the path, otherwise rewrite to php"}}