Created
February 23, 2017 19:10
-
-
Save Tristor/003d46b3202a087a8718f62eb36418bc to your computer and use it in GitHub Desktop.
Nginx temporary configuration for CertBot webroot verification
This file contains 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
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