I'm trying to follow the instructions on http://www.4webhelp.net/tutorials/misc/htaccess.php in order to create a password file placed outside of the web root and use it in conjunction with .htaccess. The problem I can't solve here is that the
AuthUserFile
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
/mumbo/jumbo/my_site/public_html
/mumbo/jumbo/
$_SERVER['DOCUMENT_ROOT']
From the manual:
File-path is the path to the user file. If it is not absolute, it is treated as relative to the ServerRoot.
You should give either an absolute path or a relative one to the server root. Neither would solve your problem.