Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: forcing the use use of https Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dnagel
Newbie
Newbie


Joined: 22 April 2007
Location: United States
Online Status: Offline
Posts: 8
Posted: 08 November 2007 at 10:31am | IP Logged Quote dnagel

Can to show me how to force the use of https with select urls?


I want to force https with


http://mysite.com/secure


But not on


http://mysite.com/content



Thanks




Edited by Lexey - 08 November 2007 at 3:54pm
Back to Top View dnagel's Profile Search for other posts by dnagel Visit dnagel's Homepage
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7452
Posted: 08 November 2007 at 3:54pm | IP Logged Quote Lexey

What version of the ISAPI_Rewrite are you going to use?
Back to Top View Lexey's Profile Search for other posts by Lexey
 
dnagel
Newbie
Newbie


Joined: 22 April 2007
Location: United States
Online Status: Offline
Posts: 8
Posted: 08 November 2007 at 3:56pm | IP Logged Quote dnagel

How do I tell what version I have?

__________________
Dan
Back to Top View dnagel's Profile Search for other posts by dnagel Visit dnagel's Homepage
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7452
Posted: 08 November 2007 at 4:18pm | IP Logged Quote Lexey

What is the installation package name that you have used to install the ISAPI_Rewrite?
Back to Top View Lexey's Profile Search for other posts by Lexey
 
dnagel
Newbie
Newbie


Joined: 22 April 2007
Location: United States
Online Status: Offline
Posts: 8
Posted: 08 November 2007 at 8:38pm | IP Logged Quote dnagel

The file name is: isapi_rwf_x86_0067.msi

__________________
Dan
Back to Top View dnagel's Profile Search for other posts by dnagel Visit dnagel's Homepage
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7452
Posted: 09 November 2007 at 12:53pm | IP Logged Quote Lexey

So, you have ISAPI_Rewrite 2.

Here are the rules:

RewriteCond %HTTPS (?!on).*
RewriteRule /secure(/.*)? https\://mysite.com/secure$1 [I,RP]

RewriteCond %HTTPS on
RewriteRule /content(/.*)? http\://mysite.com/content$1 [I,RP]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
dnagel
Newbie
Newbie


Joined: 22 April 2007
Location: United States
Online Status: Offline
Posts: 8
Posted: 09 November 2007 at 1:10pm | IP Logged Quote dnagel

Thanks Lexey

__________________
Dan
Back to Top View dnagel's Profile Search for other posts by dnagel Visit dnagel's Homepage
 
dnagel
Newbie
Newbie


Joined: 22 April 2007
Location: United States
Online Status: Offline
Posts: 8
Posted: 09 November 2007 at 2:10pm | IP Logged Quote dnagel

Hi Lexey


I am still having trouble with this. here is my test httpd.ini file.


ISAPI_Rewrite]


#fix URLs without trailing slashes RewriteCond %HTTPS (on).* RewriteCond Host: (.*) RewriteRule ([^.?]+[^.?/]) http(?1s)\://$2$3/ [I,R]


#Force SSL onRewriteCond %HTTPS (?!on).* RewriteRule /secure(/.*)? https\://localhost/secure$1 [I,RP]


#Force SSL offRewriteCond %HTTPS on RewriteRule /content(/.*)? http\://localhost/content$1 [I,RP]


I get the error:


localhost has sent an incorrect or unexpected message. Error Code: -12263


If I comment out the top section, the secure section works but I get the error on the content section.


with nothing commented out I get the error on the secure section.


I can't seem to go from https to http (although I don't really need to do this)



Thanks




Edited by Lexey - 09 November 2007 at 3:37pm
Back to Top View dnagel's Profile Search for other posts by dnagel Visit dnagel's Homepage
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7452
Posted: 09 November 2007 at 3:40pm | IP Logged Quote Lexey

I guess the following note should help:

http://www.isapirewrite.com/docs/#prb
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum