Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Hide the Destination URL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tullio
Newbie
Newbie


Joined: 24 February 2008
Online Status: Offline
Posts: 6
Posted: 24 February 2008 at 3:07pm | IP Logged Quote tullio

Hello All,

A newbe question...

I have to redirect all requests made to http://www.mywebportal.com/videos to http://videos.mywebportal.com.

I know how to do this simple rule, but i want to know if is possible to hide the destination URL, i mean the user browser will show only http://www.mywebportal.com/videos i dont want to show the subdomain URL to my users...

With Best Regards

Tullio

 

 

Back to Top View tullio's Profile Search for other posts by tullio
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 25 February 2008 at 5:42am | IP Logged Quote Yaroslav

You need proxy rule to do this:

RewriteProxy /videos(.*) http://videos.mywebportal.com$1 [I]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
tullio
Newbie
Newbie


Joined: 24 February 2008
Online Status: Offline
Posts: 6
Posted: 25 February 2008 at 6:02am | IP Logged Quote tullio

Hello Yaroslav,

 

Thanks for the reply...

I tried but wont worked, maybe due my mistake....

I get a 404 error, i also tried this code:

RewriteProxy /videos http://videos.mysite.com.br

With this code a get:

Internal Server Error. Please contact a server administrator.

 

Any hints ?

Back to Top View tullio's Profile Search for other posts by tullio
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 25 February 2008 at 8:40am | IP Logged Quote Yaroslav

1. What ISAPI_Rewrite version you are using?
2. If it is V2 please try to run "cscript proxycfg.vbs -r" from the command line.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
tullio
Newbie
Newbie


Joined: 24 February 2008
Online Status: Offline
Posts: 6
Posted: 03 March 2008 at 4:47am | IP Logged Quote tullio

Dear Yaroslav....

 

1-) V2

2-) I run the vbs script but i?m still getting the error.

 

Any more clues ?

 

Best Regards

Tullio

Back to Top View tullio's Profile Search for other posts by tullio
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 03 March 2008 at 10:08am | IP Logged Quote Yaroslav

And what is your OS version?
Please read "Premissions required to run ISAPI_Rewrite" chapter in docmuentation.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
tullio
Newbie
Newbie


Joined: 24 February 2008
Online Status: Offline
Posts: 6
Posted: 03 March 2008 at 10:12am | IP Logged Quote tullio

Hello,

 

Windows 2003 STD...

The permissions are okay, i can use the Isapi Rewrite to other functions...

Back to Top View tullio's Profile Search for other posts by tullio
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 03 March 2008 at 10:15am | IP Logged Quote Yaroslav

Proxy function requires additional permissions. Also please make sure ISAPI_Rewrite proxy module is enabled in "Web Service Extensions".

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
tullio
Newbie
Newbie


Joined: 24 February 2008
Online Status: Offline
Posts: 6
Posted: 03 March 2008 at 1:12pm | IP Logged Quote tullio

Yaroslav,

Does the Rewrite Proxy is a separeted add-on for Isapi Rewrite? I cant find any Proxy DLL ou Extensions in my machine...

[]?s

Tullio

 

Back to Top View tullio's Profile Search for other posts by tullio
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 04 March 2008 at 5:10am | IP Logged Quote Yaroslav

Probably you are using ISAPI_Rewrite Lite which does not include proxy module?
The dll file name is rwhelper.dll.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
tullio
Newbie
Newbie


Joined: 24 February 2008
Online Status: Offline
Posts: 6
Posted: 06 March 2008 at 9:28am | IP Logged Quote tullio

Yaroslav,

Some News...

Nevermind all previous Steps...

I download and installed the lastest version of Isapi Rewrite 3. I made some progress.

See my config file bellow, the site with Rewrite is:

http://proxy.dualtec.com.br

Now the issue is that i have a working proxy rule that redirects all requests to http://proxy.dualtec.com.br/videos to www.dualtec.com.br keeping the original url but see the diference between the two requests.....

 

Why ?

---------------------

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.42

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
RewriteBase
# unsupported directive: [ISAPI_Rewrite]

#  3600 = 1 hour
# unsupported directive: CacheClockRate 3600


#  Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]

#  Block external access to the Helper ISAPI Extension
RewriteRule ^.*\.isrwhlp$ / [NC,F,O]

#  Rewrite 1
RewriteRule ^/servidor$ http\://www.dualtec.com.br/conteudo/servidor_dedicado.htm [NC,R=301]

#  Rewrite 2

RewriteProxy /videos(.*) http://www.dualtec.com.br$1

-------------------END--------------------------

Back to Top View tullio's Profile Search for other posts by tullio
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 11 March 2008 at 6:44am | IP Logged Quote Yaroslav

I can't see the difference because links are not working. First of all I suggest you to use this config instead:

RewriteEngine on
RewriteBase /

# Rewrite 1
RewriteRule ^servidor$ http://www.dualtec.com.br/conteudo/servidor_dedicado.htm [NC,R=301,L]

# Rewrite 2
RewriteProxy /videos(.*) http://www.dualtec.com.br$1 [NC,L]

And please note that proxy cannot change links on pages, so if links within pages use incorrect base you will need to either move proxy-point directory to reflect this base or change links on remove server.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 

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