epike on Tue, 31 Dec 2002 12:01:07 -0500 |
> This configuration doesn't make sense. If you're using named virtual > hosts, use them. If not, don't enable the option. But it works. I've been using this form for awhile now to host virtual hosts(2+ years): NameVirtualHost 1.2.3.4 --------------------- <VirtualHost 1.2.3.4> ServerName host1 ... ... <VirtualHost 1.2.3.4> ServerName host2 ... ... --------------------- Followed your advice and tested using this: --------------------- NameVirtualHost 1.2.3.4 <VirtualHost host1> ServerName host1 ... ... <VirtualHost host2> ServerName host2 ... ... --------------------- As usual, I get errors like: [warn] VirtualHost xxxxxxxxxx:80 overlaps with VirtualHost yyyyyyyyyyy:80, the first has precedence, perhaps you need a NameVirtualHost directive Putting :443 doesnt work either. what am i doing wrong? thanks e pike / jondz --------old------- > > On Fri, Dec 27, 2002 at 02:12:07PM -0500, epike@isinet.com wrote: > > NameVirtualHost 1.2.3.4 > > > > <VirtualHost 1.2.3.4 1.2.3.4:443> > > ServerName myvirtualhost1 > > SSLEnable > > ... > > ... > > <VirtualHost 1.2.3.4 1.2.3.4:443> > > ServerName myvirtualhost2 > > SSLEnable > > ... > > ... > > <VirtualHost 1.2.3.4 1.2.3.4:443> > > This configuration doesn't make sense. If you're using named virtual > hosts, use them. If not, don't enable the option. > > Having more than one named virtual host using SSL with Apache works > just fine (I'm doing it in production, but for firewall-accessibilty > and customer-privacy reasons, I'm not going to point you at the > server in question), provided that you've got a separate SSL cert > for each. > > Something like > > NameVirtualHost 1.2.3.4 > > <VirtualHost www.foo.dom:443> > ServerName www.foo.dom > [SSL options] > </VirtualHost> > > <VirtualHost www.bar.dom:443> > ServerName www.bar.dom > [SSL options] > </VirtualHost> > > is almost definitely what you want. > > That's Apache 1.3.x syntax; it may have changed slightly for Apache > 2.x. > > -- > gabriel rosenkoetter > gr@eclipsed.net > _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|