Turning non-SSL traffic off

This is a discussion on Turning non-SSL traffic off within the Modssl Users forums, part of the Web Server and Related Forums category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C5816F.C70E88D3 Content-Type: text/plain; charset="us-ascii&...


Go Back   Usenet Forums > Web Server and Related Forums > Modssl Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-05-2005
Hoda Nadeem
 
Posts: n/a
Default Turning non-SSL traffic off

This is a multi-part message in MIME format.

------_=_NextPart_001_01C5816F.C70E88D3
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20
What is the easiest and cleanest way to entirely turn all non-SSL
traffic off and only allow SSL traffic to pass through?=20
=20
Thanks.=20
=20
Nadeem
=20
Note: We are trying to use mod_rewrite, and it is currently messing up
the mod_jk connector:
=20
<IfModule mod_rewrite.c>

RewriteEngine On

#Accept nothing else than login processing on port 443

RewriteCond %{SERVER_PORT} !443

RewriteRule ^/(.*) <our domain name>/$1 [L,R]=20

</IfModule>


------_=_NextPart_001_01C5816F.C70E88D3
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial size=3D2>What =
is the easiest=20
and cleanest way to entirely turn all non-SSL traffic off and only allow =
SSL=20
traffic to pass through? </FONT></SPAN></DIV>
<DIV><SPAN class=3D057423714-05072005></SPAN><SPAN =
class=3D057423714-05072005><FONT=20
face=3DArial size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial =
size=3D2>Thanks.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial=20
size=3D2>Nadeem</FONT></SPAN></DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial size=3D2>Note:=20
</FONT></SPAN><SPAN class=3D057423714-05072005><SPAN=20
class=3D057423714-05072005><FONT face=3DArial size=3D2>We are trying to =
use=20
mod_rewrite, and it is currently messing up the mod_jk=20
connector:</FONT></SPAN></DIV>
<DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D057423714-05072005><FONT face=3DArial =
size=3D2><EM>&lt;IfModule=20
mod_rewrite.c&gt;</EM></FONT></DIV>
<DIV>
<P><FONT face=3DArial><FONT size=3D2><EM><SPAN=20
class=3D057423714-05072005>&nbsp;&nbsp;&nbsp; </SPAN>RewriteEngine=20
On</EM></FONT></FONT></P>
<P><FONT face=3DArial><FONT size=3D2><EM><SPAN=20
class=3D057423714-05072005>&nbsp;&nbsp;&nbsp; </SPAN>#Accept nothing =
else than=20
login processing on port 443</EM></FONT></FONT></P>
<P><FONT face=3DArial><FONT size=3D2><EM><SPAN=20
class=3D057423714-05072005>&nbsp;&nbsp;&nbsp; </SPAN>RewriteCond =
%{SERVER_PORT}=20
!443</EM></FONT></FONT></P>
<P><FONT face=3DArial><FONT size=3D2><EM><SPAN=20
class=3D057423714-05072005>&nbsp;&nbsp;&nbsp; </SPAN>RewriteRule =
^/(.*)&nbsp;<SPAN=20
class=3D057423714-05072005>&lt;our domain name&gt;/$1</SPAN> [L,R]=20
</EM></FONT></FONT></P>
<P><FONT face=3DArial=20
size=3D2><EM>&lt;/IfModule&gt;</EM></FONT></P></SPAN></DIV></SPAN></DIV><=
/BODY></HTML>

------_=_NextPart_001_01C5816F.C70E88D3--
__________________________________________________ ____________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0