httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Tronstad" <s...@nextgentel.com>
Subject [users@httpd] Help configuring Apache2 + SSL + namebased vhosts
Date Wed, 04 Mar 2009 13:13:00 GMT
Dear all   (I've tried google, and there seems to be so many different
solutions/problems on this subject that matching my case exactly is
nearly impossible).


My case:
I have a webserver with 1 IP-address. This webserver is currently
handling 6 virtual hosts configured like this:

ports.conf: 
Listen 80

sites-enabled/default: 
NameVirtualHost *
<VirtualHost *>
  Bla bla bla
</VirtualHost>

sites-enabled/siteN:
<VirtualHost *>
    ServerName www.mydomain.ltd
   Bla bla bla
</VirtualHost>

This works perfekt!

-	- - - - - - 

Now  I have to add SSL support for one of my domains, so I add Listen
443 to my ports.conf, changes all <VirtualHost *> to <VirtualHost *:80>
and create a new <VirtualHost *:443> for my SSL site. I also change/add
NameVirtualHost *:80 and *:443 in my 'default' file.

This doesnt work at all. What am I doing wrong?



Med vennlig hilsen / with kind regards 
Steffen Tronstad 




Mime
View raw message