View Single Post
  #3  
Old 20th September 2010, 09:31
teves teves is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 27
Thanked 15 Times in 10 Posts
Default

Hi Falko,
thanks for the reply.

I tried putting it into the "Apache Directives" field, but I noticed that the contents of this field are put into both the :80 and :443 parts of the Vhost_ispconfig.conf entries for the web. I thought that I cannot do it that way.

Do I have to to it in a special way? Can I direct the entries to just the :443 part of the config? And where to put the https redirection then?

This is what I put into the :443 part of the webs vhost entry at the moment:

Code:
SSLEngine On
SSLCipherSuite HIGH:MEDIUM
SSLCertificateFile /etc/apache2/ssl/sserver-root-cert.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
#
SSLCACertificateFile /etc/ssl/cacert.pem
SSLCARevocationFile /etc/ssl/cacert.crl
<Location />
  SSLVerifyClient require
  SSLVerifyDepth 5
  SSLOptions +ExportCertData
  SSLRequire %{SSL_CLIENT_S_DN_CN} eq "Testuser"
</Location>
And this is inside my "Apache Directives" field:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Reply With Quote