RE: Mixing HTTPS and HTTP Virtual Hosts in Apache

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

 



Jeopardectomy Performed

On  Mon, Jun 05, 2006 4:32 PM,  Matthew Benjamin wrote
> On 6/5/06, alan <alan@xxxxxxxxxxxxxx> wrote:
> >> On Mon, 5 Jun 2006, Gordon Messmer wrote:
> >> 
> >> > Matthew Benjamin wrote:
> >> > >> Does anyone have experience in Apache creating a SSL site
> >> > >> along with a normal http website via NameVirtualHost. I am
> >> > >> trying but it only gives the default_virtual_host for the
> >> > >> SSL site.
> >> >
> >> > You can't really do NameVirtualHost on https.  Apache can
> >> > only do one certificate for https, since SSL negotiation
> >> > happens before the browser tells the server what hostname it
> >> > wants.
> >> >
> >> > You'll need to do traditional virtual hosts for https.
> >> 
> >> It can only do one https host per IP Address.  You can have
> >> more than one cert, but they have to point to separate IP
> >> addresses.
> >> 
> I keep getting the warning message...
> 
> "[warn] _default_ VirtualHost overlap on port 443, the first has
> precedence" (without the quotes). I need to somehow override the
> default VirtualHost, any ideas?

Tell us what you changed since you first posted.  That is, you had:

<VirtualHost *:443>
    ServerAdmin myname@xxxxxxxxx
    ServerName www.g.com
    DocumentRoot /home/myname/public_html/download
</VirtualHost>

What did you change it to?  If you didn't change any of that, then
read the responses you already received (and one of which you even
quoted).  You cannot use Name Based Virtual Hosting with SSL. 
Period.

This is a FAQ.
	http://httpd.apache.org/docs/trunk/ssl/ssl_faq.html#vhosts

Your line:
	<VirtualHost *:443>
Needs to be:
	<VirtualHost 1.2.3.4:443>
where 1.2.3.4 is the IP address of your site.  That IP address
cannot be shared with other sites.

If you have any specific questions after that, please ask.

--
Henry

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux