On 22 Dec 2004 18:10:09 GMT, Davide Bianchi
<davideyeahsure.DeleteThis@onlyforfun.net> :
>On 2004-12-22, brlaas <no.DeleteThis@no.net> wrote:
>> I have gone through all of the conf files, but can not see where I
>> have configured HTTP(80) on the standard HTTPS(443) port.
>
>When Apache is configured for SSL usually you end up with something
>like
>
>Listen 80
><IfDefine SSL>
>Listen 443
></IfDefine>
>
>Then in the VirtualHost section:
>
><IfDefine SSL>
><VirtualHost *:443>
>....
></VirtualHost>
></IfDefine>
>
>This makes apache listen to port 443 _only_ when SSL is enabled and on
>port 80 for 'normal' http. I suppose that in your case you miss the
>'443' part, so you're running https on port 80. Now, normally browsers
>when instructed to use https switch automatically to port 443. This
>keeps the two way separated. If you want to run https only, change your
>'listen' directive to listen only on port 443.
>
>Davide
Thanks Davide,
I did find the error and corrected it. My error_log now looks like the
following when starting up Apache2:
[Wed Dec 22 10:38:56 2004] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec2)
[Wed Dec 22 10:38:56 2004] [debug] util_ldap.c(1129): LDAP cache:
Unable to init Shared Cache: no file
[Wed Dec 22 10:38:56 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Dec 22 10:38:56 2004] [notice] LDAP: SSL support unavailable
[Wed Dec 22 10:38:56 2004] [info] Init: Initializing OpenSSL library
[Wed Dec 22 10:38:56 2004] [info] Init: Seeding PRNG with 136 bytes of
entropy
[Wed Dec 22 10:38:56 2004] [info] Loading certificate & private key of
SSL-aware server
[Wed Dec 22 10:38:56 2004] [debug] ssl_engine_pphrase.c(468):
unencrypted RSA private key - pass phrase not required
[Wed Dec 22 10:38:56 2004] [info] Init: Generating temporary RSA
private keys (512/1024 bits)
[Wed Dec 22 10:38:57 2004] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Wed Dec 22 10:38:57 2004] [debug] ssl_scache_dbm.c(403):
Inter-Process Session Cache (DBM) Expiry: old: 0, new: 0, removed: 0
[Wed Dec 22 10:38:57 2004] [info] Init: Initializing (virtual) servers
for SSL
[Wed Dec 22 10:38:57 2004] [info] Configuring server for SSL protocol
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(402): Creating
new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(585): Configuring
permitted SSL ciphers
[ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(713): Configuring
RSA server certificate
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(752): Configuring
RSA server private key
[Wed Dec 22 10:38:57 2004] [info] Server: Apache/2.0.49, Interface:
mod_ssl/2.0.49, Library: OpenSSL/0.9.7d
[Wed Dec 22 10:38:57 2004] [debug] util_ldap.c(1129): LDAP cache:
Unable to init Shared Cache: no file
[Wed Dec 22 10:38:57 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Dec 22 10:38:57 2004] [notice] LDAP: SSL support unavailable
[Wed Dec 22 10:38:57 2004] [info] Init: Initializing OpenSSL library
[Wed Dec 22 10:38:57 2004] [info] Init: Seeding PRNG with 136 bytes of
entropy
[Wed Dec 22 10:38:57 2004] [info] Loading certificate & private key of
SSL-aware server
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_pphrase.c(468):
unencrypted RSA private key - pass phrase not required
[Wed Dec 22 10:38:57 2004] [info] Init: Generating temporary RSA
private keys (512/1024 bits)
[Wed Dec 22 10:38:57 2004] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Wed Dec 22 10:38:57 2004] [debug] ssl_scache_dbm.c(403):
Inter-Process Session Cache (DBM) Expiry: old: 0, new: 0, removed: 0
[Wed Dec 22 10:38:57 2004] [info] Init: Initializing (virtual) servers
for SSL
[Wed Dec 22 10:38:57 2004] [info] Configuring server for SSL protocol
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(402): Creating
new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(585): Configuring
permitted SSL ciphers
[ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(713): Configuring
RSA server certificate
[Wed Dec 22 10:38:57 2004] [debug] ssl_engine_init.c(752): Configuring
RSA server private key
[Wed Dec 22 10:38:57 2004] [info] Server: Apache/2.0.49, Interface:
mod_ssl/2.0.49, Library: OpenSSL/0.9.7d
[Wed Dec 22 10:38:58 2004] [notice] mod_python: Creating 32 session
mutexes based on 150 max processes and 0 max threads.
[Wed Dec 22 10:38:58 2004] [notice] Apache/2.0.49 (Linux/SuSE)
configured -- resuming normal operations
[Wed Dec 22 10:38:58 2004] [info] Server built: Nov 9 2004 22:42:30
[Wed Dec 22 10:38:58 2004] [debug] prefork.c(955): AcceptMutex:
sysvsem (default: sysvsem)
However I still can not access the server via https , I still see in
the access log
192.168.42.9 - - [22/Dec/2004:10:41:21 -0800] "\x80L\x01\x03" 200 709
"-" "-"
Everytime I try to access https and the ssl_request_log is empty. I
did not see anything in the error_log that would indicate a
configuration problem.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Apache2 SSL problem