This is a discussion on public_html within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, I'm trying to set up a .htaccess file in my home directory: $ cat .htaccess AuthType Basic AuthName "...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm trying to set up a .htaccess file in my home directory: $ cat .htaccess AuthType Basic AuthName "Restricted Files" AuthUserFile ~/.htpasswd require user jon However, apache doesn't recognise the tilde, or $HOME so it can't find my password file. Do I have to specify the full path to my password file or is there a way to substitute this? Thanks, JS. |
|
|||
|
"pingu" <vervoom@hotmail.com> wrote in message
news:358db551.0401010909.4c261ac@posting.google.co m... > Hi, > > I'm trying to set up a .htaccess file in my home directory: > > $ cat .htaccess > AuthType Basic > AuthName "Restricted Files" > AuthUserFile ~/.htpasswd > require user jon > > However, apache doesn't recognise the tilde, or $HOME so it can't find > my password file. Do I have to specify the full path to my password > file or is there a way to substitute this? What happens when you try the full path to the .htpasswd file? JJ |