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

Re: redirect whole site to https



I would suggest you do the following:

in /etc/httpd/conf/httpd.conf

Change DocumentRoot to /var/www/empty
Add Redirect / https://server/

in /etc/httpd/conf.d/ssl.conf

Set real DocumentRoot (/var/www/html)

Erik

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
> 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>
> 
> --
> ---
> Derek T. Yarnell
> University of Maryland
> Computer Science Department Unix Staff
> derek cs umd edu
> 
> 
> --
> Taroon-list mailing list
> Taroon-list redhat com
> http://www.redhat.com/mailman/listinfo/taroon-list
>



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