how do i redirect web trafic from port 80 to 443
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Mon Jan 5 18:29:40 UTC 2004
Am Mo, den 05.01.2004 schrieb Ow Mun Heng um 10:47:
> > -----Original Message-----
> > From: Rodolfo J. Paiz [mailto:rpaiz at simpaticus.com]
> > Sent: Monday, January 05, 2004 3:10 PM
> > To: fedora-list at redhat.com
> > Subject: Re: how do i redirect web trafic from port 80 to 443
> > After a long search and lots of trial and error, I managed to get the
> > following to work reliably for me:
> >
> > RewriteEngine on
> > RewriteCond %{SERVER_PORT} !^443$
> > RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R,NC]
>
>
> What's [L,R,NC] for??
Please read http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html and
especially the section where the "flags" are described.
> I tried that as well. Didn't work for me. Is it cause it's not able to
> connect to the SSL port?
>
> I tried https://my.ipaddress.com and it was a "Doc Not Found" error.
For HTTPS you must know, that it first needs that HTTP is properly
working. If you have the default Fedora Apache installation with the
mod_ssl module then your Apache will listen on ports 80 and 443. You
seem to have damaged the default configuration.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
More information about the fedora-list
mailing list