Last active
August 29, 2015 14:05
-
-
Save ianneub/46a0fc444a0c1b60adaa 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
$ flynn route add -c /Users/ianneub/Downloads/server.crt -k /Users/ianneub/Downloads/server.key devops-web.demo.localflynn.com | |
http/77e595da631b53309cb428b26d27f598 | |
$ flynn route | |
ROUTE SERVICE ID | |
http:devops-web.demo.localflynn.com devops-web-web http/77e595da631b53309cb428b26d27f598 | |
$ curl 'https://devops-web.demo.localflynn.com/' -D - | |
curl: (35) Server aborted the SSL handshake | |
# My app should enforce HTTPS only, so any non-HTTPS would redirect to HTTPS. | |
$ curl 'http://devops-web.demo.localflynn.com/' -D - | |
HTTP/1.1 301 Moved Permanently | |
Connection: close | |
Content-Type: text/html | |
Date: Thu, 14 Aug 2014 19:10:17 GMT | |
Location: https://devops-web.demo.localflynn.com/ | |
Status: 301 Moved Permanently | |
# Router log | |
$ flynn log flynn-a1393f2b3a1f44b28b94dba3d73c33ee | |
2014/08/14 19:12:06 Cannot serve TLS, no certificate defined for this domain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment