http://localhost:443 reurns normal http page
I have a strange problem which has probably got something to do with my config file. Apache + modssl (latest versions) on win32 (NT 4 sp5) http://localhost works https://localhost works but http://localhost:443 returns a page but does not use a secure connection Below are the most important parameters. Any help much appreciated. Port 80 Listen 80 Listen 443 SSLMutex sem SSLRandomSeed startup builtin SSLSessionCache none SSLLog logs/SSL.log SSLLogLevel debug VirtualHost 192.168.1.55:443 ServerName lappie.collies.nl DocumentRoot "e:\opensource\apache\htdocs" SSLEngine On SSLCertificateFile conf/ssl/lappie.cert SSLCertificateKeyFile conf/ssl/lappie.key /VirtualHost Colin Chalmers __ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager[EMAIL PROTECTED]
RE: http://localhost:443 reurns normal http page
The only thing I can see as strange with that configuration is that you didn't get an error with http://localhost:443. The server should have responded that you used the wrong protocol, since it would expect an SSL connection to that that port. that is why you have the s after http (to indicate a different protocol. In other words http://localhost is equivalent to http://localhost:80 https://localhost is equivalent to https://localhost:443 Other than that, you can't mix and match them. - John Airey Internet Systems Support Officer, ITCSD, Royal National Institute for the Blind, Bakewell Road, Peterborough PE2 6XU, Tel.: +44 (0) 1733 375299 Fax: +44 (0) 1733 370848 [EMAIL PROTECTED] -Original Message- From: Colin Chalmers [mailto:[EMAIL PROTECTED]] Sent: 25 October 2000 09:09 To: [EMAIL PROTECTED] Subject: http://localhost:443 reurns normal http page I have a strange problem which has probably got something to do with my config file. Apache + modssl (latest versions) on win32 (NT 4 sp5) http://localhost works https://localhost works but http://localhost:443 returns a page but does not use a secure connection Below are the most important parameters. Any help much appreciated. Port 80 Listen 80 Listen 443 SSLMutex sem SSLRandomSeed startup builtin SSLSessionCache none SSLLog logs/SSL.log SSLLogLevel debug VirtualHost 192.168.1.55:443 ServerName lappie.collies.nl DocumentRoot "e:\opensource\apache\htdocs" SSLEngine On SSLCertificateFile conf/ssl/lappie.cert SSLCertificateKeyFile conf/ssl/lappie.key /VirtualHost Colin Chalmers __ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager[EMAIL PROTECTED] __ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager[EMAIL PROTECTED]
Re: http://localhost:443 reurns normal http page
Colin Chalmers wrote: http://localhost works https://localhost works but http://localhost:443 returns a page but does not use a secure connection What do you mean by "works"? Do they all lead to the same page? I think what is happening is the following: http://localhost - defaults to port 80, uses HTTP protocol https://localhost - defaults to port 443, uses "SSL" protocol (hence secure) http://localhost:443 - you tell it to use HTTP, but on port 443... So as long as the server has a virtualhost on that port it will serve it via plain HTTP. You need to separate the SSL and HTTP directories and use the SSLRequireSSL directive in the SSL virtual host. E.g. VirtualHost 192.168.1.1:80 DocumentRoot /home/docs/plain_html /VirtualHost VirtualHost 192.168.1.1:443 SSLRequireSSL DocumentRoot /home/docs/ssl_stuff /VirtualHost __ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager[EMAIL PROTECTED]