This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite Help
Author
Message |
wildb
Newbie


Joined: 06 August 2010
Location: United States
Posts: 2
Posted: 06 August 2010 at 10:55am

Hi all.
 
I'm trying to direct traffic for a application with a context root (tbes) and coming from a given IP address (10.88.6.35) to another server (newhost).
 
I want to use this rule to only allow our credit card service to access a internal web service.
 
The code that I have written is:
 
# added 08-04-2010 William Brown
RewriteCond URL /tbes/.*
RewriteCond %{REMOTE_ADDR} ^10\.88\.6\.35$
RewriteRule (.*) http\://newhost\:7779$1 [I,P,L]
 
Currently with the code above it is redirecting traffic to the correct server, however it is not restricting access to just the given IP address.
 
Please help!
 
Thanks,
William Brown
Back to Top
 
wildb
Newbie


Joined: 06 August 2010
Location: United States
Posts: 2
Posted: 06 August 2010 at 11:16am

I've got it working.

I used:

RewriteCond URL /tbes/.*
RewriteCond %REMOTE_ADDR 10\.88\.6\.35
RewriteRule (.*) http\://webtest.insurance.ca.gov\:7779$1 [I,P,L]

Thanks,
William Brown


Back to Top
 

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

Printable version Printable version
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