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

Re: Apache and SSL



Hi Johnno,

Take a look at http://httpd.apache.org/docs for lots of information on how
to configure apache. Anyway, you cannot put "NameVirtualHost" directive
inside a virtual host container. Here is how you could do it:

.... (Rest of config)
Listen 80
Listen 443
.... (Rest of config)
NameVirtualHost *
NameVirtualHost *:443

<VirtualHost *>
 ServerAdmin tech@testing.zz
 ServerName testing.zz
 DocumentRoot /www/testing
</VirtualHost>

<VirtualHost *:443>
 ServerAdmin tech@testing.zz
 ServerName testing.zz
 DocumentRoot /www/testing
</VirtualHost>

Check http://httpd.apache.org/docs/vhosts/name-based.html for more info.

Cheers, Fred.

--
Fred Clausen - Systems Administrator
Unique Interactive, part of UBC Media Group plc
Winners of the 2002 CRCA NTL New Media Award

http://www.ubcmedia.com
http://www.uniqueinteractive.co.uk
T: +44 (0)20 7453 1677 F: +44 (0)20 7486 5081


On Fri, 13 Dec 2002, Johnno wrote:

> I have tried
>
> <VirtualHost *>
> namevirtualhost 192.168.1.1:443
> ServerAdmin tech@testing.zz
>  ServerName testing.zz
>  DocumentRoot /www/testing
>  </VirtualHost>
>
> and
>
> <VirtualHost *>
> namevirtualhost 192.168.1.1
> ServerAdmin tech@testing.zz
>  ServerName testing.zz
>  DocumentRoot /www/testing
>  </VirtualHost>
>
> and even VirtualHost 192.168.1.1 and 192.168.1.1:80
>
> for some reason it keeps on going back to the deafult server page you get
> when you first install apache.
> this is only when you use https, if you use http://testing.zz it goes to the
> right page.
>
> Thanks for all the help
>
> Johnno
>
>
> --
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>



Reply to: