On 1/24/06, David Knecht <[EMAIL PROTECTED]> wrote:
> This is probably an easy one but I did not find a solution so far:
>
> A cgi script is trying to read the file /aaa/bbb/../ccc/file. As this
> file does not exist on the server, error_log reports this error message:
>
> [Tue Jan 24 18:44:52 2006] [error] [client 192.168.94.1] Can't access
> file /aaa/bbb/../ccc/file
>
> My question: I would like to configure Apache 2.0.52 for Linux to read
> the file /xxx/yyy/zzz/file instead of /aaa/bbb/../ccc/file whenever
> /aaa/bbb/../ccc/file is read.
>
> So far, I did not find an Apache feature that does this conversion. I
> thought about using mod_rewrite but access to /aaa/bbb/../ccc/file is
> just made by the cgi script, thus, I think - please correct me if I am
> wrong - mod_rewrite cannot be used for such conversions.
>
> Of course I could define symbolic links or modify the cgi script to
> solve this problem but I am looking for a pure Apache-based solution to
> get some more flexibility and to learn more about Apache.

If the cgi script is trying to read the file directly from the
filesystem, then there is nothing apache can do about it.  A cgi
script is just like any other program running on your system and will
have the same type of filesystem access.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to