Page 1 of 1

http und https Zugriff

Posted: 2003-12-05 02:38
by root-maxel
Hallo!

Habe hier auf einem Debian apache mit ssl installiert (Apache/1.3.26 (Unix) Debian GNU/Linux mod_ssl/2.8.9 OpenSSL/0.9.6g )Zertifikate sind erstellt und mod_ssl nach dem readme eingebunden.
Ich möchte nun wahlweise per http oder https auf meine Domaine zugreifen können. Ich arbeite nicht mit virtual hosts.

Meine httpd.conf sieht für SSL so aus:
##
## SSL Global Context
##
## All SSL configuration in this context applies both to
## the main server and all SSL-enabled virtual hosts.
##
SSLEngine On
SSLCertificateFile /etc/apache/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache/ssl.key/server.key
<IfModule mod_ssl.c>
Listen 80
Listen 443
</IfModule>

#
# Some MIME-types for downloading Certificates and CRLs
#
<IfModule mod_ssl.c>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfModule>
<IfModule mod_ssl.c>

# Pass Phrase Dialog:
# Configure the pass phrase gathering process.
# The filtering dialog program (builtin' is a internal
# terminal dialog) has to provide the pass phrase on stdout.
SSLPassPhraseDialog builtin

# Inter-Process Session Cache:
# Configure the SSL Session Cache: First either none'
# or dbm:/path/to/file' for the mechanism to use and
# second the expiring timeout (in seconds).
#SSLSessionCache none
#SSLSessionCache shm:logs/ssl_scache(512000)
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300

# Semaphore:
# Configure the path to the mutual explusion semaphore the
# SSL engine uses internally for inter-process synchronization.
SSLMutex file:/var/run/ssl_mutex
# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the PRNG of the
# SSL library. The seed data should be of good random quality.
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
#SSLRandomSeed startup file:/dev/random 512
#SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random 512
#SSLRandomSeed connect file:/dev/urandom 512

SSLLog /var/log/apache/ssl_engine_log
SSLLogLevel info

</IfModule>
Webserver läuft auf 80 und 443. Versuche ich mit SSLEngine On auf meine Seite mit http zuzugreifen kommt das nur https erlaubt ist (das geht dann auch)

Schalte ich SSLEngine off dann geht http aber bei https kommt eine Fehlermeldung im error.log
[Fri Dec 5 02:09:13 2003] [error] [client 217.230.195.25] Invalid method in request x80Lx01x03
Wie schaffe ich es das beides geht??

Danke..

Maxel

Re: http und https Zugriff

Posted: 2003-12-05 08:10
by bobby
Hi!

Du musst für SSL einen VirtualHost einrichten, bzw. für beides je einen.

Sonst gehts nicht...

Gruß

Bobby