Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

mod_rewrite and IIS7

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


briansullivan at gmail

Feb 6, 2012, 7:22 AM

Post #1 of 2 (617 views)
Permalink
mod_rewrite and IIS7

I am attempting to park Zope behind Windows 2008/IIS7 (using its
mod_rewrite function) and seem to be having some difficulty getting it
to work.

What I want to do is make directory on Zope website look like it is a
directory on an IIS7 website. I seem to be close but missing some
critical element.

Does anybody have a step by step process for doing this or samples of
rules on IIS7 for doing something similar?
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


yourpadre at gmail

Feb 9, 2012, 1:03 PM

Post #2 of 2 (596 views)
Permalink
Re: mod_rewrite and IIS7 [In reply to]

2012/2/6 Brian Sullivan <briansullivan [at] gmail>

> I am attempting to park Zope behind Windows 2008/IIS7 (using its
> mod_rewrite function) and seem to be having some difficulty getting it
> to work.
>
> What I want to do is make directory on Zope website look like it is a
> directory on an IIS7 website. I seem to be close but missing some
> critical element.
>
> Does anybody have a step by step process for doing this or samples of
> rules on IIS7 for doing something similar?
> _______________________________________________
> Zope maillist - Zope [at] zope
> https://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )
>

Hi Brian

I do it using managedfusion-rewriter-3.5.
First I add a site that repond only when is called with 'zope-site'.
In its directory you will have a web.config file that you'll need to modify.

http://iis7-site:80 -> server by IIS 7 in port 80
http://zope-site:80 -> server by Zope in port 90

--
--In my web.config:
--
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<section name="managedFusion.rewriter"
type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup"/>
</configSections>

<managedFusion.rewriter xmlns="
http://managedfusion.com/xsd/managedFusion/rewriter">
<rules engine="Apache" />
</managedFusion.rewriter>

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<add name="RewriterModule"
type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter" />
</modules>
<handlers>
<add name="RewriterProxyHandler" preCondition="integratedMode"
verb="*" path="RewriterProxy.axd" type="System.Web.HttpForbiddenHandler,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
<defaultDocument enabled="false" />
</system.webServer>
</configuration>



--
--In my ManagedFusion.Rewriter.txt file
--

RewriteEngine On

RewriteRule ^/(.*)
http://localhost:90/VirtualHostBase/http/%{SERVER_NAME}:80/control-emisiones/VirtualHostRoot/$1[P,QSA,NC]


--
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.