I'm following the instructions on CPAN for setting up SSL (http://search.cpan.org/~hobbestig/Dancer-Plugin-RequireSSL-0.121331/lib/Dancer/Plugin/RequireSSL.pm) and I'm not sure whether it's working.

My perl dancer script loads up fine with no errors or warnings but it looks like the URL is still HTTP, is that just because I'm accessing it through localhost:3000? Trying to access https://localhost:3000 just tells me the page doesn't exist.

Will it work fine once I deploy the website to a real server or is there still something I have to configure for it to work (do I have to install SSL somehow)? Do I have to set the port to 80 or 443 instead of the default 3000?


In reply to Perl Dancer and SSL setup by Buuntu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.