httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rostislav Chebykin" <>
Subject [users@httpd] SSI: help me to find the path
Date Sun, 25 Jan 2004 13:51:45 GMT

Is there any way (by the pure SSI) to get the name of directory which
contains current document?

More detailed:

The DOCUMENT_URI variable contains full path to the current document from
the root of web server (for example, '/about/faq/index.html').
The DOCUMENT_NAME variable contains the name of current file (for example,

But I want to get a path to the current directory (i.e., 'about/faq/' or at
least '/about/faq').

As far as I know, there aren't any direct ways to 'subtract' the string
DOCUMENT_NAME from the string DOCUMENT_URI. But maybe there exist any
'trick' to do it?

Rostislav Chebykin <>

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message