httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Mast <>
Subject [users@httpd] Enabling SSL on a virtual host
Date Tue, 15 Dec 2009 15:48:15 GMT
I have a single webserver (1 IP) to which many DNS entries point to.  Up
till now I've haven't needed SSL and the following config pattern has worked
fine for me:

<VirtualHost *>

<VirtualHost *>

However, when I added SSL to to, the config had to become:

In the meantime non-HTTPS traffic to worked fine except that
the Alias directives did not work.  So I realized the problem (the port was
only for 443) and changed the config to:

But this has the unwanted effect of returning 400 Bad Request to HTTP
traffic for, with this message:
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

So my question is, how do I configure the VirtualHost to allow HTTP traffic
(port 80) and HTTPS traffic (443)?

View raw message