Re: [PHP] Re: Anyone good with multiple SSL on Apache?

[email protected] (Jochen Schultz)
Newsgroups php.general
Message-ID <[email protected]>
Thanks Per,

well here is a short translation of this article:
http://www.tech-nerds.de/blog/2009/02/apache2-mit-mehreren-ssl-virtualhosts/

If you havn't installed apache2-threaded-dev:
You need the current verion of gnutls (download from gnu.org)
Download, unpack, compile and install as usual. Than call ldconfig.
And than install apache2-threaded-dev:
./configure --with.apxs2=/usr/bin/apxs2
make install
(Which copies apache module (hopefully) to this path: 
/usr/lib/apache2/modules)

Than create /etc/apache2/mods-enabled/gnutls.load with following entry:

LoadModule gnutls_module /usr/lib/apache2/modules/mod_gnutls.so

And you have to Create /etc/apache2/mods-enabled/gnutls.conf containing 
the following:

<IfModule gnutls_module>
GnuTLSCache dbm /var/cache/mod_gnutls_cache
GnuTLSCacheTimeout 300
</IfModule>

Well and than every vhost that has to use SSL needs an entry like this:

<VirtualHost 192.168.1.250:443>
ServerName www.example.de
GnuTLSEnable on
GnuTLSPriorities NORMAL
GnuTLSCertificateFile /etc/certs/example_server.pem
GnuTLSKeyFile /etc/certs/example_key.pem
DocumentRoot "/var/www/example.de"
...
</DocumentRoot>

regards

Jochen Schultz

P.S. I think i will have to give it a try right now.

Per Jessen schrieb:
> Jochen Schultz wrote:
> 
>> AFAIK Apache 2 doesn't support virtual hosts for SSL.
>>
> 
> I think it does now - there was even a c't article on the topic not long
> ago.  I'll see if I can find it.
> 
> 
> /Per
> 

-- 
  Sport Import GmbH   - Amtsgericht Oldenburg  - Tel:   +49-4405-9280-63
  Industriestrasse 39 - HRB 1202900            -
  26188 Edewecht      - GF: Michael Müllmann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.