Apache 2.0 + Virtual Hosts + SSL

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache 2.0 + Virtual Hosts + SSL

Postby Antineutrino » 23. July 2007 12:20

Hallo,

auf meinem Apache 2.0 soll es mehrere Virtual Hosts geben, von denen einige auch über SSL angesprochen werden sollen.

In der ssl.conf habe ich nun folgendes stehen
Code: Select all
...

<VirtualHost www.ssl1.de:443>
DocumentRoot "C:/Programme/Apache Group/Apache2/htdocs"
ServerName ***:443
ServerAdmin ***
ErrorLog logs/error_log
TransferLog logs/access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/bqd-08-153.crt
SSLCertificateKeyFile conf/bqd-08-153.key
<FilesMatch "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/Programme/Apache Group/Apache2/cgi">
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>


<VirtualHost _default_:443>
*Das gleiche nochmal*
</VirtualHost>


Wenn ich jetzt für www.ssl1.de "SSLEngine off" sage, sind aber weiterhin alle (www.ssl1.de, www.ssl2.de, www.ssl3.de) über https erreichbar. Weshalb?
Antineutrino
 
Posts: 9
Joined: 02. July 2007 11:07

Postby Antineutrino » 23. July 2007 13:37

httpd.conf
Code: Select all
NameVirtualHost 127.0.0.1:80

<VirtualHost www.ssl1.de:80>
    ServerAdmin abc@abc.de
    DocumentRoot "C:\Programme\Apache Group\SSL1"
    ServerName bqd-08-153-bq-projects.de
    ErrorLog "C:\Programme\Apache Group\SSL1\error.log"
    #CustomLog "C:\Programme\Apache Group\SSL1\access.log"
</VirtualHost>

<VirtualHost www.ssl2.de:80>
    ServerAdmin abc@abc.de
    DocumentRoot "C:\Programme\Apache Group\SSL2"
    ServerName bqd-08-153-bq-projects.de
    ErrorLog "C:\Programme\Apache Group\SSL1\error.log"
    #CustomLog "C:\Programme\Apache Group\SSL1\access.log"
    RedirectMatch ^/(.*) www.ssl2.de:444
</VirtualHost>

Listen 444
<VirtualHost www.ssl2.de:444>
    ServerAdmin abc@abc.de
    DocumentRoot "C:\Programme\Apache Group\SSL2"
    ServerName bqd-08-153-bq-projects.de
    ErrorLog "C:\Programme\Apache Group\SSL1\error.log"
    #CustomLog "C:\Programme\Apache Group\SSL1\access.log"
</VirtualHost>

<VirtualHost www.ssl3.de:80>
    ServerAdmin abc@abc.de
    DocumentRoot "C:\Programme\Apache Group\SSL3"
    ServerName bqd-08-153-bq-projects.de
    ErrorLog "C:\Programme\Apache Group\SSL1\error.log"
    #CustomLog "C:\Programme\Apache Group\SSL1\access.log"
</VirtualHost>


ssl.conf
Code: Select all
<VirtualHost _default_:443>
DocumentRoot "C:/Programme/Apache Group/Apache2/htdocs"
ServerName bqd-08-153.bq-projects.de:443
ServerAdmin admin@bq-projects.de
ErrorLog logs/error_log
TransferLog logs/access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/bqd-08-153.crt
SSLCertificateKeyFile conf/bqd-08-153.key
<FilesMatch "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/Programme/Apache Group/Apache2/cgi">
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>


Ich habe hier im Forum gelesen, dass man verschiedene Ports nutzten muss, wenn man SSL und Virtual Hosts benutzen möchte.

Was muss ich in der ssl.conf ändern, damit z.B. www.ssl2.de über https läuft, die anderen beiden (www.ssl1.de, www.ssl3.de) aber nicht?
Antineutrino
 
Posts: 9
Joined: 02. July 2007 11:07


Return to Apache

Who is online

Users browsing this forum: No registered users and 2 guests