[Zope] Difference between zope and apache
Jan-Frode Myklebust
janfrode@parallab.uib.no
Mon, 28 May 2001 09:01:20 +0200
Hi,
I've just noticed an annoying difference in the handling of directories
in zope. If I create an directory /myDirectory, put an index_html file
there, and a my.css file the index_html should use in the same directory
refering to it with <link rel=stylesheet type=text/css href="my.css"> in
the head of my document I get a structure that would work perfectly fine
in apache, but not in zope.
/myDirectory
/myDirectory/index_html
/myDirectory/my.css
Accessing http://example.com/myDirectory in zope would give me the
files http://example.com/myDirectory/index_html and
http://example.com/my.css
In apache the server would return a location header like:
Location: http://example.com/myDirectory/
and then my browser would know it should ask for
http://example.com/myDirectory/my.css
Zope doesn't seem to set the location header, so asking for
http://example.com/myDirectory/
http://example.com/myDirectory
returns different results if the index_html contains relative URLs
below /myDirectory/.
Bug or feature?
-jf