Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

very strange... multiple name based virtual hosts seem to ..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_ssl windows binary  
Author Message
s_p_a_m_mob

External


Since: Sep 30, 2003
Posts: 3



(Msg. 1) Posted: Tue Sep 30, 2003 9:31 am
Post subject: very strange... multiple name based virtual hosts seem to work with ssl!
Archived from groups: alt>apache>configuration (more info?)

Hi there,

It is said overall that multiple name based virtual hosts can't work
with ssl (see for example
http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts), but
surprisingly I got it work with apache 2...

From conf.d/ssl.conf:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NameVirtualHost 212.11.36.114:443

<VirtualHost 212.11.36.114:443>
ServerName vpn.bernard.tc
ServerAlias vpn.bernard.tk

(...)
DocumentRoot "/var/www/html/bernard/vpn"

</VirtualHost>


<VirtualHost 212.11.36.114:443>
ServerName vpn.kilargo.com
ServerAlias vpn.kilargo.fr

(...)
DocumentRoot "/var/www/html/kilargo/vpn"

</VirtualHost>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Then, https://vpn.bernard.tc/ goes to
/var/www/html/bernard/vpn/index.html and
https://vpn.kilargo.com to /var/www/html/kilargo/vpn/index.html...


Any idea? Did i miss something?

Marc-Olivier BERNARD

 >> Stay informed about: very strange... multiple name based virtual hosts seem to .. 
Back to top
Login to vote
user2369

External


Since: Jul 11, 2003
Posts: 22



(Msg. 2) Posted: Tue Sep 30, 2003 6:23 pm
Post subject: Re: very strange... multiple name based virtual hosts seem to work with ssl! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

where's your ssl certificate config etc ?


"Marc-Olivier BERNARD" <s_p_a_m_mob RemoveThis @hotmail.com> wrote in message
news:a846118c.0309300531.1ca17b7b@posting.google.com...
 > Hi there,
 >
 > It is said overall that multiple name based virtual hosts can't work
 > with ssl (see for example
 > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts" target="_blank">http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts</a>), but
 > surprisingly I got it work with apache 2...
 >
 > From conf.d/ssl.conf:
 >
 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 >
 > NameVirtualHost 212.11.36.114:443
 >
 > <VirtualHost 212.11.36.114:443>
 > ServerName vpn.bernard.tc
 > ServerAlias vpn.bernard.tk
 >
 > (...)
 > DocumentRoot "/var/www/html/bernard/vpn"
 >
 > </VirtualHost>
 >
 >
 > <VirtualHost 212.11.36.114:443>
 > ServerName vpn.kilargo.com
 > ServerAlias vpn.kilargo.fr
 >
 > (...)
 > DocumentRoot "/var/www/html/kilargo/vpn"
 >
 > </VirtualHost>
 >
 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 >
 > Then, <a style='text-decoration: underline;' href="https://vpn.bernard.tc/" target="_blank">https://vpn.bernard.tc/</a> goes to
 > /var/www/html/bernard/vpn/index.html and
 > <a style='text-decoration: underline;' href="https://vpn.kilargo.com" target="_blank">https://vpn.kilargo.com</a> to /var/www/html/kilargo/vpn/index.html...
 >
 >
 > Any idea? Did i miss something?
 >
 > Marc-Olivier BERNARD<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: very strange... multiple name based virtual hosts seem to .. 
Back to top
Login to vote
s_p_a_m_mob

External


Since: Sep 30, 2003
Posts: 3



(Msg. 3) Posted: Tue Sep 30, 2003 6:23 pm
Post subject: Re: very strange... multiple name based virtual hosts seem to work with ssl! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Webmaster \(Nemesis Services\)" <webmaster DeleteThis @NOSPAMnemesis-services.co.uk> wrote in message news:<3f7987ac$1@news.star.co.uk>...
 > where's your ssl certificate config etc ?
 >

In the (...).

I noticed that only the first server certificate is used for all
virtual host. I think i understand why but it is quite enoying.

What is the best workaround (new port?)

Marc-Olivier BERNARD<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: very strange... multiple name based virtual hosts seem to .. 
Back to top
Login to vote
user2431

External


Since: Aug 21, 2003
Posts: 23



(Msg. 4) Posted: Tue Sep 30, 2003 7:27 pm
Post subject: Re: very strange... multiple name based virtual hosts seem to work with ssl! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Marc-Olivier BERNARD" <s_p_a_m_mob RemoveThis @hotmail.com> escribió en el mensaje
news:a846118c.0309300531.1ca17b7b@posting.google.com...
 > It is said overall that multiple name based virtual hosts can't work
 > with ssl (see for example
 > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts" target="_blank">http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts</a>), but
 > surprisingly I got it work with apache 2...

«It comes as rather a shock to learn that it is impossible.»

I guess that documentation is not as accurate as it could. It is actually
possible to make several sites work with SSL using the same IP + port
combination. However, they will all share the same certificate; and since
certs are bind to full domain names that means browser will display a
warning. Encryption will work, anyway.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: very strange... multiple name based virtual hosts seem to .. 
Back to top
Login to vote
s_p_a_m_mob

External


Since: Sep 30, 2003
Posts: 3



(Msg. 5) Posted: Tue Sep 30, 2003 7:27 pm
Post subject: Re: very strange... multiple name based virtual hosts seem to work with ssl! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

Thank you for your confirmation. You said: "certs are bind to full
domain names"

In fact it is possible to create a server certificate for all
subdomain of one domain, without any warning.

When creating the server certificate (self signed in my case), simply
choose *.bernard.tc as hostname, an then any subdomain of bernard.tc
will work (vpn.bernard.tc, <a style='text-decoration: underline;' href="http://www.bernard.tc," target="_blank">www.bernard.tc,</a> etc.). I tryed it with
success (IE, Mozilla).

Marc-Olivier BERNARD

"Alvaro G. Vicario" <alvaro.QUITAR_REMOVE.TakeThisOut@telecomputeronline.com> wrote in message news:<blc3s9$9ufo7$1@ID-157797.news.uni-berlin.de>...
 > "Marc-Olivier BERNARD" <s_p_a_m_mob.TakeThisOut@hotmail.com> escribió en el mensaje
 > news:a846118c.0309300531.1ca17b7b@posting.google.com...
  > > It is said overall that multiple name based virtual hosts can't work
  > > with ssl (see for example
  > > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts" target="_blank">http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts</a>), but
  > > surprisingly I got it work with apache 2...
 >
 > «It comes as rather a shock to learn that it is impossible.»
 >
 > I guess that documentation is not as accurate as it could. It is actually
 > possible to make several sites work with SSL using the same IP + port
 > combination. However, they will all share the same certificate; and since
 > certs are bind to full domain names that means browser will display a
 > warning. Encryption will work, anyway.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: very strange... multiple name based virtual hosts seem to .. 
Back to top
Login to vote
user2431

External


Since: Aug 21, 2003
Posts: 23



(Msg. 6) Posted: Thu Oct 02, 2003 4:05 pm
Post subject: Re: very strange... multiple name based virtual hosts seem to work with ssl! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Marc-Olivier BERNARD" <s_p_a_m_mob.DeleteThis@hotmail.com> escribió en el mensaje
news:a846118c.0309301100.5c4e2f0d@posting.google.com...
 > I noticed that only the first server certificate is used for all
 > virtual host. I think i understand why but it is quite enoying.
 >
 > What is the best workaround (new port?)

New port or new IP. The best solution is a new IP but of course IPs cost
money. If you change port you'll always have to add port number to URLs.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: very strange... multiple name based virtual hosts seem to .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual hosts and SSL? - Hello I'm trying to setup this apache 1.3 server for virtual hosts, with ssl. I've got the normal port 80 working, but the SSL is a bit of a mess. If I have the SSL pages in the real part of the server, ie, https://www.example.com/fred/index.htm then....

Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that "virtual hosts" are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apa...

Apache Name-based Virtual Host SSL - i want to set Virtual Host SSL now i can set Basic Virtual Host not SSL like www.123.com and www.456.com but i want to set https://www.123.com and https://www.456.com too . How can i do sir ? note : i has 1 ip address on 1 server computer . thank u...

Name based virtual host issues - I am brand new to apache(v2) and am having an issue setting up name based virtual hosting. I wish to quit using IIS and move to apache. the details are as follows local machine name: TPP Domain 1: thepumas.net domain 2: galadrielle.org domain 3:..

Virtual Hosts question - I guess I need to know if this is even possible... I have one webserver running apache Virtual Hosts on three different ports. Everything works fine and I can go to each page by specifying the port in my browser (e.g. "http://domain.com:8080"...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]