[users@httpd] Some kind of "file name mapping"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Any hints are welcome.

Thanks, David



---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux