Created
October 8, 2016 22:08
-
-
Save mnordhoff/29884797f659c0b1e67bfe058f50e77d to your computer and use it in GitHub Desktop.
This file contains hidden or 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; | |
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; | |
} |
This file contains hidden or 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; | |
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