I'm trying to set the path to the Apache password file to point to the directory above the public root (the .htaccess file is obviously at the public root). I'm trying to do this dynamically so I can use the same .htaccess file both locally AND live.

Here is an example of what I tried...

Code:
AuthUserFile ../.htpasswd
Unfortunately in the Apache error log I get this error which the path is clearly pulling from the server address (on C:\) versus the actual path of all the sites I have locally (on D:\)...

Could not open password file: C:/apache/.htpasswd
How do I tell Apache the file is simply a directory above where the .htaccess file is dynamically so this will work both locally and live?