You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Jackson <jj...@anti-exe.com> on 2002/08/01 06:42:59 UTC

Re: Problem between http and https

ServerName server_name
Redirect / https://server_name

That's one way to do it.
JJ

----- Original Message ----- 
From: <Ed...@ita.org.mo>
To: <us...@httpd.apache.org>
Sent: Wednesday, July 31, 2002 12:34 AM
Subject: Problem between http and https


> Hello,
> 
> Who can tell me how to set the httpd.conf for this function ?
> When user type : http://server_name, it will auto direct point to
> https://server_name  ?
> 
> Thank for your help !
> 
> Edward.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Problem between http and https

Posted by Robert Andersson <ro...@profundis.nu>.
EdwardSPL@ita.org.mo wrote:

> Sorry,
>
> I don't understand the use of rediect ...
> Can you help me ?
>
> Thanks,
>

Please read the docs on mod_alias, and especially the Redirect directive.
http://httpd.apache.org/docs/mod/mod_alias.html

It's fairly straight forward; when the client do request a matching URL, you
tell him to use another one. A directive, like the one by Joshua Jackson,
and myself, would do the trick:

<VirtualHost *:80>
    ServerName webmail
    Redirect / https://webmail/
    ...
</VirtualHost>

When the user types "[http://]webmail" into the browser, Apache will tell
the user agent to try "https://webmail/" instead. It will also work if the
client tries something like http://webmail/folder/, as he will be redirected
to https://webmail/folder/. Note that this isn't a transparent alias, but a
real "redirect", and the new URL will show in the client's address bar.

This, I believe, will work for you. And for a more complete implementation,
look at my previous reply where I suggested an implementation of 3 virtual
hosts (Main - noSSL, WebMail - noSSL, and WebMail -SSL).

Regards,
Robert Andersson



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Problem between http and https

Posted by Ed...@ita.org.mo.
Sorry,

I don't understand the use of rediect ...
Can you help me ?

Thanks,

Joshua Jackson wrote:

> ServerName server_name
> Redirect / https://server_name
>
> That's one way to do it.
> JJ
>
> ----- Original Message -----
> From: <Ed...@ita.org.mo>
> To: <us...@httpd.apache.org>
> Sent: Wednesday, July 31, 2002 12:34 AM
> Subject: Problem between http and https
>
> > Hello,
> >
> > Who can tell me how to set the httpd.conf for this function ?
> > When user type : http://server_name, it will auto direct point to
> > https://server_name  ?
> >
> > Thank for your help !
> >
> > Edward.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org