Skip to content

Instantly share code, notes, and snippets.

@Tristor
Created February 23, 2017 19:10
Show Gist options
  • Save Tristor/003d46b3202a087a8718f62eb36418bc to your computer and use it in GitHub Desktop.
Save Tristor/003d46b3202a087a8718f62eb36418bc to your computer and use it in GitHub Desktop.
Nginx temporary configuration for CertBot webroot verification
server {
listen 80;
server_name localhost;
location / {
root /var/www/matrix.tristor.ro/public/;
index index.html index.htm;
}
location '/.well-known/acme-challenge' {
default_type "text/plain";
allow all;
root /var/www/matrix.tristor.ro/public/;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment