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

Re: redirect whole site to https



On Wed, Jun 30, 2004 at 11:37:52AM -0700, Christopher McCrory wrote:
> Hello...
> 
> On Wed, 30 Jun 2004 14:34:44 -0400, Derek T. Yarnell <derek cs umd edu> wrote:
> > What is the easiest way to redirect a whole apache web site to the
> > https url. We do it in one way by running two seppart apache instances
> 
> why?

Why not? look a http://rhn.redhat.com ... always redirects you to the
ssl website. I want to secure the whole website, and I want to force
people into the secure website.

> 
> > and in the non-ssl one we just redirect to the SSL one.
> > 
> > Is there an easier way to tell in the main httpd.conf file to say
> > something like
> > 
> > <IfDefine !SSL>
> >         Redirect / https://jaundiced.csic.umd.edu
> > </IfDefine>
> > 
> 
> <VirtualHost *:80>
>         ServerName default
>         Redirect / https://www.example.com/
> </VirtualHost>

This works great, thanks.

-- 
---
Derek T. Yarnell
University of Maryland
Computer Science Department Unix Staff
derek cs umd edu



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