fmogavero has asked for the wisdom of the Perl Monks concerning the following question:

Greetings, I have an index page that I am trying to redirect to a Perl script. The redirect works perfectly. The script will not run under SSL. http://www.mydomain.com/dir/perl.pl works fine. https://host###.myprovider.com/~mydomain/dir/perl.pl gives me a 500 error. This is how my provider says to use SSL. Can you help?

Replies are listed 'Best First'.
Re: Perl Script in SSL
by brian_d_foy (Abbot) on Feb 27, 2005 at 00:20 UTC

    It's time for go through the steps I outline to debug a CGI script.

    Sometimes these sorts of problems come up because the SSL server is set up slightly differently from the non-SSL one. Sometimes this is intentional, and sometimes it isn't. I always expect my script first though.

    --
    brian d foy <bdfoy@cpan.org>
Re: Perl Script in SSL
by dorward (Curate) on Feb 26, 2005 at 23:26 UTC

    A 500 http status code just means that a mysterious something has gone wrong. The first place to look is the error log your webserver keeps. That should give you some idea as to where to look next.

Re: Perl Script in SSL
by esskar (Deacon) on Feb 26, 2005 at 23:24 UTC
    * what webserver are you using?
    * do plain html files work?
    * does ssl. has the same rights as www. does?
      Apache. I am not sure what version.

      Plain .html files work fine.

      Don't know if the rights are the same.

Re: Perl Script in SSL
by stonecolddevin (Parson) on Feb 26, 2005 at 23:06 UTC
    Well i'm not sure if this will help but the SSL default port is 443, did you try http://mydomain.com:443/dir/perl.pl?
    UPDATE: I lied. that's the SSH default port. Downvote as needed :-(
    UPDATE2: Just so no one gets screwed up, The Mad Hatter is correct. Pay no mind to the above babble about ports.
    meh.
      http://mydomain.com:443 would just address a http server running on port 443 since to protocol is http; vice versa, a https server running on port 80 would be called as https://mydomain.com:80
      No, port 443 is the default SSL port; you were right. The default SSH port is 22.