This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Proxy Server Http to Https
Author
Message |
wowdude
Newbie


Joined: 10 November 2011
Posts: 2
Posted: 15 November 2011 at 9:40pm

Hello,

Trying to use ISAPI Rewrite 3.0 as a proxy server. I have
2 servers - proxy server and app server. The proxy
server will receive a http request but I have to route
it to the app server using https.

I tried the following and it is not working:
RewriteEngine on
RewriteProxy ^(.*)$ https://appserver1:8443/app/$1
[L,R=301]

My proxy server is IIS 6.0.
The URL I am sending to the proxy server is :
http://proxyserver/app

Appreciate your help.


Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 16 November 2011 at 7:02am

Hello,

1) if you request https://appserver1:8443/app/ from the front-end, does it show the app?
2) please, provide rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 
wowdude
Newbie


Joined: 10 November 2011
Posts: 2
Posted: 16 November 2011 at 11:56am

Hello Andrew,

1. Yes. I tested that the https link is working before I
use it on the rewrite proxy.

3. Here's the rewrite log.

[localhost/sid#1][rid#33434856/initial] (2) init rewrite
engine with requested uri /favicon.ico             
[localhost/sid#1][rid#33434856/initial] (1) Htaccess
process request C:\Helicon\ISAPI_Rewrite3\httpd.conf   
[localhost/sid#1][rid#33435224/initial] (2) init rewrite
engine with requested uri /app/                    
[localhost/sid#1][rid#33435224/initial] (1) Htaccess
process request C:\Helicon\ISAPI_Rewrite3\httpd.conf   
[localhost/sid#1][rid#33435224/initial] (1) Htaccess
process request c:\websites\app\.htaccess              
[localhost/sid#1][rid#33435224/initial] (3) applying
pattern '^(.*)$' to uri ''                            
[localhost/sid#1][rid#33435224/initial] (2) forcing
proxy-throughput with https://appserver1:8443/app/      
[localhost/sid#1][rid#33435224/initial] (1) go-ahead with
proxy request https://appserver1:8443/app/ [OK]   
[localhost/sid#1][rid#33435224/initial] (1) Rewrite URL
to >> /app/x.rwhlp?p=0                            
[localhost/sid#1][rid#33435224/initial] (2) rewrite '' ->
'/app/x.rwhlp?p=0'                                
[localhost/sid#1][rid#33435224/initial] (2) internal
redirect with /app/x.rwhlp?p=0 [INTERNAL REDIRECT]     
                                                                                                            
[localhost/sid#1][rid#33434856/initial] (2) init rewrite
engine with requested uri /favicon.ico             
[localhost/sid#1][rid#33434856/initial] (1) Htaccess
process request C:\Helicon\ISAPI_Rewrite3\httpd.conf   

Thank you
Ferdinand
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 17 November 2011 at 7:41am

Well,

rewrite.log show that everything is okay:
Quote:
(2) init rewrite engine with requested uri /favicon.ico                         
(1) Htaccess process request C:\Helicon\ISAPI_Rewrite3\httpd.conf    
(1) Htaccess process request c:\websites\app\.htaccess              
(3) applying pattern '^(.*)$' to uri ''                            
(2) forcing proxy-throughput with https://appserver1:8443/app/       
(1) go-ahead with proxy request https://appserver1:8443/app/ [OK]    
(1) Rewrite URL to >> /app/x.rwhlp?p=0                            
(2) rewrite '' -> '/app/x.rwhlp?p=0'                                 
(2) internal redirect with /app/x.rwhlp?p=0 [INTERNAL REDIRECT]      


Proxy must work as expected. What kind of issue do you have while requesting.
You may write a direct email using our helpdesk or HeliconTech email to provide direct link or RDp credentials.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version