<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi<BR>
<BR>
I have had a lot of problem with this as well, I ended up doing:<BR>
<BR>
<VirtualHost *:80><BR>
    ServerAdmin <A HREF="mailto:mkj.its@cbs.dk">your.email</A><BR>
    DocumentRoot /var/www<BR>
    ServerName your.domain<BR>
<BR>
    RewriteEngine On<BR>
    RewriteRule ^/(.*)$ https://webadmin.cbs.dk/$1 [R]<BR>
<BR>
    ...                                                                                                                                                 <BR>
</VirtualHost><BR>
<BR>
<VirtualHost *:443><BR>
    ServerAdmin your email<BR>
    DocumentRoot /var/www<BR>
    ServerName your.domain<BR>
    ...<BR>
</VirtualHost>                                                                                                                                                   <BR>
<BR>
/Mikkel<BR>
<BR>
On Mon, 2004-01-05 at 06:47, Ow Mun Heng wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>> -----Original Message-----
> From: Alexander Dalloz [mailto:alexander.dalloz@uni-bielefeld.de]
> Sent: Monday, January 05, 2004 9:02 AM
> To: fedora-list@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 </FONT><A HREF="https://www.otherdomain.tld/"><U>https://www.otherdomain.tld/</U></A>
<FONT COLOR="#737373">> </Directory>

> So if you access </FONT><A HREF="http://www.domain.de/phpMyAdmin/"><U>http://www.domain.de/phpMyAdmin/</U></A><FONT COLOR="#737373"> (which is 
> port 80) you


I tried that on the webserver but no joy. (yes.. i did a service restart)
Actually, I can't access </FONT><A HREF="https://my.ipaddress.com"><U>https://my.ipaddress.com</U></A><FONT COLOR="#737373"> but I can access</FONT>
<A HREF="http://my.ipaddress.com:443"><U>http://my.ipaddress.com:443</U></A>
<FONT COLOR="#737373">



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: </FONT><A HREF="http://www.redhat.com/mailman/listinfo/fedora-list"><U>http://www.redhat.com/mailman/listinfo/fedora-list</U></I></A></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>