Skip to content

Instantly share code, notes, and snippets.

@mnordhoff
Created October 8, 2016 22:08
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 mnordhoff/29884797f659c0b1e67bfe058f50e77d to your computer and use it in GitHub Desktop.
Save mnordhoff/29884797f659c0b1e67bfe058f50e77d to your computer and use it in GitHub Desktop.
server {
listen 80;
location /.well-known/acme-challenge/ {
root /path/to/certbot;
try_files $uri @redirect;
}
location @redirect {
return http://xmpp-server.example.com$request_uri;
}
server_name example.com www.example.com;
}
server {
listen 80;
location /.well-known/acme-challenge/ {
root /path/to/certbot;
}
server_name xmpp-server.example.com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment