Last active
September 19, 2016 12:50
-
-
Save severak/37af4255da26037ccb78ab060d539d8a to your computer and use it in GitHub Desktop.
Caddyfile pro symfony projekt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# config pro development pomoci Caddy serveru (https://caddyserver.com/) | |
# | |
# teoreticky by mělo běhat o něco rychleji než vestavěný php server | |
# (Caddy je vícevláknový) | |
# | |
# dále viz https://github.com/caddyserver/examples | |
# a https://gist.github.com/severak/2600b49caae377a594d7585128495895 | |
localhost:80 { | |
# viz https://gist.github.com/severak/2600b49caae377a594d7585128495895 | |
startup fcgiserver start | |
shutdown fcgiserver stop | |
fastcgi / localhost:9000 php | |
root web | |
rewrite { | |
if {file} not favicon.ico | |
to {path} {path}/ /maintenance.html /index.php /app.php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment