Apache Problems: SSI / URL-Interpretation

Apache Problems: SSI / URL-Interpretation

Post by Simon Budi » Fri, 14 Aug 1998 04:00:00

Hi all.

While trying to do some semi-intelligent SSI-Documents (including
parsing of $DOCUMENT_PATH_INFO and $QUERY_STRING...) I found
two oddities / problems with the Apache (1.3.0).

Lets assume in my Document-Root are two files: index.html and test.html.

If I access the following URL:
Apache interprets the "index.html"-part as a directory and returns the
file "test.html". This would be correct, if "index.html" is a directory,
but in this case IMHO it would be more useful to return "index.html" and
set the DOCUMENT_PATH_INFO to "/../test.html"

There is a somehow related problem with Server-Side Includes. If "index.html"
contains the command:
<!--#include virtual="./include/inc.shtml" -->

and the URL http://localhost/index.html is requested everything works
fine. But if
is requested, the SSI-Statement fails (I believe it tries to include

IMHO the <!--#include virtual... --> Statement should be interpreted
relative to current document ($SCRIPT_NAME).

The Problem for me is, that I have to refer to files in a higher
directory (virtual="../include/foo.shtml") and file does not
permit ".."'s...

Any Ideas/comments?




1. Strange SSI interpretation

From time to time I notice that Apache does not interpret SSI "exec cmd" and
"include virtual". This process is not periodical, there is no any logic
in this bug appearance, it happens suddenly.
May be someone have such bug? And is there any patch?
Apache 1.3.6 PL28.15, platform - SUN, OS - Solaris 2.6
   WBR, Eugene

2. XFree86 v 3.1.2 Set-up question

3. Apache mod_rewrite question, url rewrite, url forward

4. Help installing eterm

5. exernal URL via SSI

6. Getting Linux to accept X connections...

7. SSI and URL parsing

8. supru express 56i sp vs RedHat 6.1 ?

9. Apache Gurus: Apache virtual server using SSI???

10. Problems with SSI and Apache on Linux

11. A problem with activating SSI in Apache

12. Apache 1.3 SSI problem

13. Apache Problem with SSI's