# prepare for letsencrypt # https://community.centminmod.com/posts/17774/ location ~ /.well-known { location ~ /.well-known/acme-challenge/(.*) { more_set_headers "Content-Type: text/plain"; } } location = /robots.txt { access_log off; log_not_found off; } #location = /favicon.ico { access_log off; log_not_found off; expires 30d; } location ~ /\. { access_log off; log_not_found off; deny all; } location ~ ~$ { access_log off; log_not_found off; deny all; } #location ~ /\.git { access_log off; log_not_found off; deny all; } #location ~ /\.gitignore { access_log off; log_not_found off; deny all; } # for security see https://community.centminmod.com/posts/17234/ location ~* \.(bak|php~|php#|php.save|php.swp|php.swo)$ { return 444; } location ~* ^/wp-content/updraft { deny all; }