[Zope] zope & fastcgi again

- bak@nstp.com.my
Thu, 9 Dec 1999 11:13:12 +0800


hi again

i have successfully installed zope with fastcgi.  how can i make the site
accessable from http://www.mysite.com/ instead of http://www.mysite.com/zope

this rewrite in apache wont work, because i think it rewrites the url and
showeither error 404 if the file zope is not there, or shows the doc "zope"
itself.

FastCgiExternalServer /home/httpd/html/zope -host localhost:8999 -pass-header
Authorization RewriteRule ^/(.*) /home/httpd/html/zope$1 [l]

 
<Location /zope>
Options ExecCGI
SetHandler fastcgi-script
</location>    

furthermore, accessing the site with http://www.mysite.com/x/ results in broken
images and broken links since the base url changes, i think.

e.g
this is ok if i access thru http://www.mysite.com/zope/
index_html
<dtml-var standard_html_header>
<body>my <dtml-var title>
<dtml-var "images.myimage.absolute_url()">
<dtml-var standard_html_footer>

this is not, results in broken links, images.  the folders images is there.

<dtml-var standard_html_header>
<body>my <dtml-var title>
<img src="/images/<dtml-var myimage>">
<dtml-var standard_html_footer>

the solution i see is hardcoding the extra reference, but i have to do all this
for my pages and some products downloaded from zope.org.
 am i missing something?  enlighten me oo gurus.. thks


------------------------------------------------------
http://www.kedai.com.my/kk
Am I Evil?