Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Last active May 20, 2020 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburnette/4b7822123195380e3873fa31cc9e7538 to your computer and use it in GitHub Desktop.
Save ryanburnette/4b7822123195380e3873fa31cc9e7538 to your computer and use it in GitHub Desktop.
WordPress Caddyfile
{
email [email]
}
[hostname] {
php_fastcgi unix//var/run/php/php-fpm.sock
file_server
encode gzip
log {
output file /var/log/caddy
}
@dotfiles {
path_regexp (^|\/)\.[^\.\/]+
}
respond @dotfiles "Unauthorized" 401
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment