Help configuring Apache2 + SSL + namebased vhosts

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

 



Title: Help configuring Apache2 + SSL + namebased vhosts

Dear all   (Ive 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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux