RE: how do i redirect web trafic from port 80 to 443

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

 



Am Mo, den 05.01.2004 schrieb Ow Mun Heng um 10:47:
> > -----Original Message-----
> > From: Rodolfo J. Paiz [mailto:rpaiz@xxxxxxxxxxxxxx]
> > Sent: Monday, January 05, 2004 3:10 PM
> > To: fedora-list@xxxxxxxxxx
> > 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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux