On Fri, 2007-02-16 at 00:27 +0200, Chaim Keren Tzion wrote:
> What is the recommended way to set up Apache2 so that all sites will default 
> to ssl (https) even if entered as http?
> 
> I don't want to have to set up a rewrite for each directory or virtual server.

I think you can get away with not setting any virtual host on the
standard port 80, and have mod_rewrite run there and produce redirects
on the same vhost and directory to the SSL virtual hosts.

--
Oded
::..
"In the pitiful, multipage, connection-boxed form to which the flowchart
has today been elaborated, it has proved to be useless as a design tool
-- programmers draw flowcharts after, not before, writing the programs
they describe."
    -- "The Mithical Man-Month" / Fred Brooks, Jr.



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to