how do i redirect web trafic from port 80 to 443

jpearl24 jpearl24 at cox.net
Tue Jan 6 07:11:38 UTC 2004


On Tue, 2004-01-06 at 00:09, Mikkel Kruse Johnsen wrote:
> Hi
> 
> I have had a lot of problem with this as well, I ended up doing:
> 
> <VirtualHost *:80>
>     ServerAdmin your.email
>     DocumentRoot /var/www
>     ServerName your.domain
> 
>     RewriteEngine On
>     RewriteRule ^/(.*)$ https://webadmin.cbs.dk/$1 [R]
> 
>    
> ...                                                                                                                                                 
> </VirtualHost>
> 
> <VirtualHost *:443>
>     ServerAdmin your email
>     DocumentRoot /var/www
>     ServerName your.domain
>     ...
> </VirtualHost>                                                                                                                                                   
> 
> /Mikkel
> 
> On Mon, 2004-01-05 at 06:47, Ow Mun Heng wrote: 
> > > -----Original Message-----
> > > From: Alexander Dalloz [mailto:alexander.dalloz at uni-bielefeld.de]
> > > Sent: Monday, January 05, 2004 9:02 AM
> > > To: fedora-list at redhat.com
> > > Subject: Re: how do i redirect web trafic from port 80 to 443
> > 
> > > Probably you want to enforce a redirection webpage calls on 
> > > your Apache with HTTP to a HTTPS site. You can do that for 
> > > instance this way using mod_rewrite:
> > > 
> > > <Directory /var/www/html/phpMyAdmin>
> > >     RewriteEngine       on
> > >     RewriteCond         %{SERVER_PORT} !=443
> > >     RewriteRule         ^.* - [F]
> > >     ErrorDocument       403 https://www.otherdomain.tld/
> > > </Directory>
> > > 
so is it working now i kwould think that u want it at /var/www/html for
root dir well thats where mine is.. are you using webmin to do this im
sure it would make your life easier...port 442 should be set up already
tho also.... 
-- 
jason pearl <jpearl24 at cox.net>
   ++++++++++++++++++
"Keep your friends close and your enemies closer"-Tupac
   ++++++++++++++++++
Kurrupted Visionz Phx, AZ    registered linux user #307811
MDK 9.2 Linux                Machine# 193475, 227341
AMD64 Opteron 1.6 http://counter.li.org
ASUS SK8N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040106/ef6b0b2b/attachment-0001.sig>


More information about the fedora-list mailing list