1st, regarding an earlier comment in this thread... it matters what your platform is: In a windows environment (as far as I could tell after 2-days worth of messing around with configs... ), you cannot actually have name-based v-hosting on port 80, as well as a single SSL v-host on 443, unless you set up two separate windows services, one for SSL on port 443 and one for port 80.
I can say that this is not true. On a Windows 2003 server and Apache 2.0 we have several name based vhosts on port 80 and one vhost on port 443 for ssl. 2nd... from what you have written, is it possible that you might not have configured your domain DNS properly? If so, this might have affected whether your CSR was correct when you got your SSL certificate. You want to set up your domain DNS as something like www.yourdomain.com (which you will serve on port 80). You will want to set up a sub-domain DNS record for secure service (something like secure.yourdomain.com ). You will want to generate a CSR and get a certificate for secure.yourdomain.com (not www.yourdomain.com)
If you are able to configure the vhosts properly on both 80 and 443 this is not required. The vhost on each port can have the same domain name and the http vs https will direct the request to the proper vhost.
Follow the advice of Owen and Matthew and look for an Include directive in your httpd.conf file to see where the other vhost it being declared. I suspect it is the file ssl.conf.
Ryan
----- Original Message ----- Sent: Tuesday, June 06, 2006 6:36 AM Subject: RE: [users@httpd] VirtualHost
> > Let's clarify what's happening: all that I'm trying is only > to set the > Web Server to work with SSL. And, as far as the documentation is > concerned, it's necessary to configure a VirtualHost to > listen on Port > 443, so you can establish a secure connection. But using the > VirtualHost > directive, Apache can't start and the following error message > is given: > [warn] VirtualHost www.myDomain:443 overlaps with VirtualHost > www.myDomain:443, the first has precedence, perhaps you need a > NameVirtualHost directive
I understand you are being coy about your real domain name, but be advised you are actually making it harder for people to understand what's going on. It's not clear if the two instances of "myDomain" above are meant to be the same thing... ie, is the message:
[warn] VirtualHost www.abc.com:443 overlaps with VirtualHost www.xyz.com:443 (abc and xyz are name-based VHs)
or
[warn] VirtualHost www.abc.com:443 overlaps with VirtualHost www.abc.com:443 (VH config is repeated)
?
In any case, as Matthew says, there is probably another file that is being included into your config (look for "Include" directive).
Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored.
> > But I only use the VirtualHost directive once! At least in > the http.conf > it's made once, is there somewhere else where the VirtualHost > is defined > besides the httpd.conf file? > > > -- > Marcos R. Cardoso > Seção de Processamento Técnico e Automação > Sistema Integrado de Bibliotecas > FURB - Blumenau > (047) 3321-0660 > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
|