[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: http et https



Pense à répondre à debian-user-french@lists.debian.org plutôt qu'à moi
directement car si je te réponds pas, quelqu'un d'autres pourra le
faire.

Le 20 janvier 2011 12:55, ZLIGUI Hammou <hammou3@gmail.com> a écrit :
> ah oui ; c'est un serveur web ( apache2 ) sous debian 5 (lenny) .
>
> <<s’il s’agit de configurer des paquets Debian, ce n’est pas HS.>>
> Effectivement Mr. Sylvain Sauvage
>
> J'espére que j'explique les notes monquants Mr.Kévin.
>

Oui sur apache je peux te répondre ;)

Chez moi j'ai utilisé la directive redirect dans mes virtualhosts.
Par exemple pour un vhost "toto" ça donne le fichier suivant
(mondomaine.fr n'existe pas bien sûr).

/etc/apache2/sites-available/mondomaine.fr/toto :

--------------------------------------
# Virtual Host ToTo

<VirtualHost *:80>
        ServerAdmin hinault@gmail.com
        ServerName toto.mondomaine.fr
        redirect / https://toto.mondomaine.fr/
        ServerSignature Off
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin hinault@gmail.com
        ServerName toto.mondomaine.fr
        SSLEngine on
        SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
        SSLCertificateFile "/etc/apache2/certs-available/mondomaine.fr.crt"
        SSLCertificateKeyFile "/etc/apache2/certs-available/mondomaine.fr.key"
        DocumentRoot /var/mondomaine.fr/toto/
        <Directory /var/mondomaine.fr/toto/>
                Options All
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
        ServerSignature Off
</VirtualHost>
--------------------------------------

Le fichier "/etc/apache2/certs-available/mondomaine.fr.crt" contient
un seul certificat mais valable pour chacun de mes vhosts grâce la
déclaration "*.mondomaine.fr" dans l'autorité de certification que
j'utilise.

-- 
Kévin
Contributeur Mozilla
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
http://identi.ca/khi - http://twitter.com/kh_i - http://system-linux.eu


Reply to: