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

httpd.conf, virtualhosts et SSL



Bonsoir à tous,

Cherchant à mettre en place mon site internet sur mon petit serveur avec OpenBSD 4.6, je me heurte à un problÃme que je n'arrive pas à rÃsoudre. Il s'agit pour moi de mettre en place un sous domaine avec SSL. Malheureusement je n'arrive pas à avoir un fichier httpd.conf au petits oignons puisque j'ai jusqu'ici Ãchouà dans ma tÃche.

Pour pouvoir faire des virtuals hosts en 80, je me suis fortement inspirà du tutorial fourni sur http://www.openbsd-edu.net/index.php/Apache

Par contre, ayant suivi le suite pour rÃaliser un virtualhost avec SSL, je n'y arrive pas.

Voici les parties que j'ai modifiÃes de mon fichier httpd.conf :

NameVirtualHost *:80
#matthieuberjon main domain
<VirtualHost *:80>
        ServerAdmin matthieu POINT berjon AT wavefield.fr
        DocumentRoot /var/www/htdocs/matthieuberjon.com
        ServerName matthieuberjon.com
        ErrorLog logs/error_log
        CustomLog logs/access_log common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin matthieu POINT berjon AT wavefield.fr
    DocumentRoot /var/www/htdocs/priv.matthieuberjon.com
    ServerName priv.matthieuberjon.com
    ErrorLog logs/error_log
    CustomLog logs/access_log common
</VirtualHost>    

NameVirtualHost *:443
<VirtualHost *:443>
        ServerAdmin moi AT monemail POINT tld
        DocumentRoot /var/www/htdocs/test.matthieuberjon.com
        ServerName test.matthieuberjon.com
        ErrorLog logs/error_log
        CustomLog logs/access_log common
   # SSLCertificateFile /etc/ssl/matthieuberjon.com.crt
   # SSLCertificateKeyFile /etc/ssl/private/matthieuberjon.com.key
</VirtualHost>


Je ne pense pas que cela puisse suffir pour se faire une idÃe. Du coup j'ai mis sur pastebin le fichier de configuration entier : http://pastebin.com/Bvm9McV0

Je ne sais pas trÃs bien oà je fais n'importe quoi. J'ai essayà de bidouillà en faisant tout un tas d'essais mais je n'arrive jamais au bon rÃsultat qui est d'avoir un certificat autosignà sur un sous domaine en https.

En vous remerciant d'avance pour votre aide,
Je vous souhaite à tous une excellente soirÃe/nuit,

Matthieu