Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: zope/plone (Topic Closed Topic Closed) Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
lbear
Newbie
Newbie


Joined: 14 August 2008
Online Status: Offline
Posts: 6
Posted: 14 August 2008 at 8:57am | IP Logged  

Hi all, I've just installed ISAPI Rewrite on a IIS 6 (win 2003 server). What I would like to realize is to create a proxy which can switch from a given domain (ex. www.mydomain.com) to my zope instance (given plone site), for example localhost:portnumber/myinstance

I cannot find a good (for me) explanation on how to do that, but I'm quite a noob in this kind of task.

Now I have installed the trial version 3.1.0.54 I am planning to buy the registered version in the next 2 weeks if I could fix this problem.

Please help me.

Back to Top View lbear's Profile Search for other posts by lbear
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10483
Posted: 15 August 2008 at 3:09am | IP Logged  

Please try to use the following:

RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteRule (.*) http://localhost:port$1 [NC,P]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
lbear
Newbie
Newbie


Joined: 14 August 2008
Online Status: Offline
Posts: 6
Posted: 18 August 2008 at 7:47pm | IP Logged  

Thank you for your answer, I have tried to use the string both in httpd.conf and in htaccess for a specific site but nothing happened.

I obviously have changed www\.mydomain with MY domain and port with 990/Plone (990 is the port number while Plone is the default configured instance) but still give me the static page I have placed as home page.

Any known issues with win 2003 server?

It seems to me that the filter doenst work at all. Could it be possible, is there a simple way to test it?

Thank you in advance.

Back to Top View lbear's Profile Search for other posts by lbear
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10483
Posted: 19 August 2008 at 6:41am | IP Logged  

Please try to put the following rule at the beginning of your config:
RewriteRule .? - [F]
And make request to some non-existing page.
If ISAPI_Rewrite works, the result will be "403 Forbidden", if not, "404 Not found".

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
lbear
Newbie
Newbie


Joined: 14 August 2008
Online Status: Offline
Posts: 6
Posted: 19 August 2008 at 10:20am | IP Logged  

ok, I've tried what you told me... nothing happens: 404 - Page not found.

So I'm downloading and installing the  latest release from the web site. I'll let you know.

Back to Top View lbear's Profile Search for other posts by lbear
 
lbear
Newbie
Newbie


Joined: 14 August 2008
Online Status: Offline
Posts: 6
Posted: 19 August 2008 at 10:23am | IP Logged  

When I try to install the software an error occurs: Installer Information: InstallHelper can't AddApplicationExtension c:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_RewriteProxy.dll
Back to Top View lbear's Profile Search for other posts by lbear
 
lbear
Newbie
Newbie


Joined: 14 August 2008
Online Status: Offline
Posts: 6
Posted: 19 August 2008 at 10:28am | IP Logged  

Ok, I have changed the directory to c:\ISAPI_RW3 and the installation succeded.
Back to Top View lbear's Profile Search for other posts by lbear
 
lbear
Newbie
Newbie


Joined: 14 August 2008
Online Status: Offline
Posts: 6
Posted: 19 August 2008 at 11:13am | IP Logged  

Ok, I have find the problem. If I install the software the first time I add a rule all goes right, then the software doesnt "feel" the other rules. Anyway, the rule you gave me works for the home page, but then when I try to access the content of the site the links are something like http://localhost:990/Plone what I need is a proxy which rewrite the url in the browser bar and point to the right page in the the server. It's clear that if in the browser a user has http://localhost he cannot browse my site.
Back to Top View lbear's Profile Search for other posts by lbear
 

Sorry, you can NOT post a reply.
This topic is closed.

  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 can vote in polls in this forum