Given this folder / file structure:
public is the root folder of a virtual host in Apache, and
private is its sibling folder:
How do I define a relative path for
AuthUserFile in the
.htaccess file, such that it is able to access
AuthType Basic AuthUserFile ../private/.htpasswd require valid-user
But that doesn't work, because it tries to find the file relative to the ServerRoot, in stead of relative the virtual host root.
I won't have access to the config file on the production server (shared host) and I don't want to define an absolute path, because my testing and production file system structures don't match.
Is it still possible to achieve what I want, given these conditions?