[KPUG] https redirect
Elizabeth Rosenzweig
errosenzweig at gmail.com
Mon Sep 17 08:39:30 PDT 2012
I got everything to work eventually. In order to get step 20 to work:
*Test by pointing a browser to the IP address you connected SSH to
last; you should get redirected to HTTPS, then asked to approve the
self-signed certificate*
I put an extra bit of code into sites-available/default to get redirection
from http to https. So now after the *listen 80;* line I have:
*if ( $scheme = "http" ) {
rewrite ^/(.*)$ https://$host/$1 permanent;
}*
which causes the redirection to https and being asked to approve the
self-signed certificate.
On Mon, Sep 17, 2012 at 10:20 AM, Gryphon Shafer
<gryphon at gryphonshafer.com>wrote:
> Greetings Betsy,
>
> Your authorized_keys file is only used for SSH connections (on port 22),
> but when you are using a web browser to try to test your hello world page,
> you'll be accessing your virtual instance through HTTP (on port 80). The
> name on your authorized_keys line is just a comment to help identify the
> line.
>
> I hope this helps. If not, let me know what step on the VM-build procedure
> is when you're first running into problems.
>
> Gryphon
>
>
>
> On 9/14/2012 11:21 PM, Elizabeth Rosenzweig wrote:
>
> Hey guys,
>
> When I go to the test shorewall I get to my "hello world" page but I don't
> get redirected or asked to approve a certificate. I'm not totally sure
> about my authorized_keys file, I have my certificate name as betsy at firewhich is my user name @ my host name, but I really have no idea if that is
> what it's supposed to be. If anyone has any idea what I'm doing wrong I
> would love to know, cause at this point I'm worried I need to rebuild my VM
> again.
>
> Thanks,
> Betsy
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kpug-pm/attachments/20120917/c9245cc4/attachment.html>
More information about the KPUG-PM
mailing list