Guest User

Untitled

a guest
Oct 19th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #cd /etc/caddy/Caddyfile
  2. example.com {
  3. root /usr/share/nginx/html
  4. gzip
  5. log /var/log/caddy/access.log
  6. #fastcgi / unix:/var/run/php-fpm/php-fpm.sock php # Fast CGI php interpreter
  7. #fastcgi / fastcgi / 127.0.0.1:9000 php # Fast CGI php interpreter
  8. #using with laravel
  9. fastcgi / unix:/var/run/php-fpm/php-fpm.sock php {
  10. index index.php
  11. }
  12.  
  13. rewrite {
  14. to {path} {path}/ /index.php?{query}
  15. }
  16. }
Add Comment
Please, Sign In to add comment