My apologies, shigetsu and I did not read your question carefully enough.
So if I understand clearly now, you used /somefolder/somesubfolder/digest.passwd thinking it would be relative to the DocumentRoot. The catch is that Perl knows absolutely nothing about DocumentRoot. The leading / tells Perl it's an absolute path. While you want to access d:\www\blabla/somefolder/somesubfolder/digest.passwd, you're actually attempting to access d:/somefolder/somesubfolder/digest.passwd.
It's a bit safer if you don't store your password file in your public web space. Solve two problems with one stone by moving your password file to somewhere outside of your DocumentRoot directory tree.
In short,
Cocument Root which is /
I think you meant "/ is DocumentRoot". If so, that's only the case in Apache's configuration files.
why apache can locate th file based on that?
Apache has nothing to do with it. Perl is the one trying to open the file.
|