public_html

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 "...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-01-2004
pingu
 
Posts: n/a
Default public_html

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.
  #2 (permalink)  
Old 01-11-2004
Jonathan
 
Posts: n/a
Default Re: public_html

"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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0