I'm running Zope behind an IIS using PCGI. This is set up the real basic way. I've created a virtual website in IIS with the hostheader "intranet.tvsyd2.dk", and added zope.pcgi and pcgi-wrapper.exe to the root folder of this website. At the same time I'm using the Virtual Host Monster with this line ----------------------------- intranet.tvsyd2.dk/zope.pcgi/tvsyd ----------------------------- So every time a user enters the address: http://intranet.tvsyd2.dk they are sent into the folder "tvsyd" in Zope. This all works well. The trouble comes here: When i create a subfolder in "tvsyd" (eg. "technical") and tries to make a link to it with this TAL code: ------------------------------- <span tal:repeat="foldy python:here.objectValues(['Folder'])" tal:omit-tag=""> <a href="URL" tal:attributes="href foldy/absolute_url" tal:content="foldy/title_or_id">TITLE OR ID</a> <br> </span> -------------------------------- the url to the subfolder ought to be "intranet.tvsyd2.dk/zope.pcgi/technical" but it isn't. Instead it is: "intranet.tvsyd2.dk/technical". The "zope.pcgi" is omitted, which means that IIS cannot figure out what to do. I returns an error message saying that "technical" does not exist. What should I do? - Carsten
I found an answer to this myself: I downloaded and installed ISAPI_rewrite (evaluation version), and added a httpd.ini file to the siteroot with these options: ------------------------------- [ISAPI_Rewrite] RewriteCond Host: (.+) RewriteRule (.*) /zope.pcgi/$2 [I] ------------------------------- It automatically adds zope.pgi in front of every request. - Carsten
-----Oprindelig meddelelse----- Fra: zope-admin@zope.org [mailto:zope-admin@zope.org]På vegne af Carsten Gehling Sendt: 27. juli 2003 23:51 Til: Zope@Zope.Org Emne: [Zope] Problem with IIS and PCGI
I'm running Zope behind an IIS using PCGI. This is set up the real basic way. I've created a virtual website in IIS with the hostheader "intranet.tvsyd2.dk", and added zope.pcgi and pcgi-wrapper.exe to the root folder of this website.
At the same time I'm using the Virtual Host Monster with this line ----------------------------- intranet.tvsyd2.dk/zope.pcgi/tvsyd -----------------------------
So every time a user enters the address: http://intranet.tvsyd2.dk they are sent into the folder "tvsyd" in Zope.
This all works well. The trouble comes here:
When i create a subfolder in "tvsyd" (eg. "technical") and tries to make a link to it with this TAL code: ------------------------------- <span tal:repeat="foldy python:here.objectValues(['Folder'])" tal:omit-tag=""> <a href="URL" tal:attributes="href foldy/absolute_url" tal:content="foldy/title_or_id">TITLE OR ID</a> <br> </span> --------------------------------
the url to the subfolder ought to be "intranet.tvsyd2.dk/zope.pcgi/technical" but it isn't. Instead it is: "intranet.tvsyd2.dk/technical". The "zope.pcgi" is omitted, which means that IIS cannot figure out what to do. I returns an error message saying that "technical" does not exist.
What should I do?
- Carsten
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Carsten Gehling wrote:
I found an answer to this myself:
I downloaded and installed ISAPI_rewrite (evaluation version), and added a httpd.ini file to the siteroot with these options: ------------------------------- [ISAPI_Rewrite] RewriteCond Host: (.+) RewriteRule (.*) /zope.pcgi/$2 [I] -------------------------------
It automatically adds zope.pgi in front of every request. - Carsten
The ISAPI redirector from the Jakarta projekt might also work, it's Open Source. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0... I guess you could configure it to access the Zope port directly, skiping the whole PCGI overhead? I haven't tried this but I would be interested if it works. I'm considering using it as is or modifying it (in the future). -- Johan Carlsson Tel: + 46 8 31 24 94 Colliberty Mob: + 46 70 558 25 24 Torsgatan 72 Email: johanc@easypublisher.com SE-113 37 STOCKHOLM
participants (3)
-
Carsten Gehling -
Carsten Gehling -
Johan Carlsson