bcarroll has asked for the wisdom of the Perl Monks concerning the following question:
...And my test index.html page#simple HTTPS web server. (must have a ./certs directory with server-k +ey.pem and server-cert.pem or server won't start) use HTTP::Daemon::SSL; my $d = HTTP::Daemon::SSL->new(LocalPort => '443') || die $!; print "HTTPS server running at: ", $d->url, "\n"; while (my $c = $d->accept) { while (my $r = $c->get_request) { $c->send_file_response('./index.html'); } $c->close; undef($c); }
Requesting https://localhost in a web browser works fine, but if I request http://localhost:443 the perl script dies. Any ideas? ...I am running ActiveState Perl 5.10 on Windows XP<html> <body> TEST </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::Daemon::SSL based server dieing when http is requested
by zwon (Abbot) on Jan 05, 2009 at 23:27 UTC |