Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: .htaccess file

by tstock (Curate)
on Sep 13, 2002 at 00:03 UTC ( #197400=note: print w/ replies, xml ) Need Help??


in reply to .htaccess file

I think you are missing some things in your .htaccess. Here's how it's supposed to look like:


AuthName        "this is neat"
AuthType        Basic
AuthUserFile    /usr/www/users/tstock/.htpasswd

<Limit GET POST>
require valid-user
</Limit>

Note the AuthUserFile points to a .htpasswd, not .htaccess, and that the path is a file path, not a URL.

To create your .htpasswd file, use the command `htpasswd -c .htpasswd username_here` from the shell. The -c flag is only needed for the first user.

tstock


Comment on Re: .htaccess file
Replies are listed 'Best First'.
Re: Re: .htaccess file
by schmoe (Beadle) on Sep 13, 2002 at 01:18 UTC
    Actually the AuthUserFile can be any name you give it (by substituting ".htpasswd" with ".whatever_you_wanna_call_it" in the shell command when you create the file) just be sure to include that dot at the beginning of the name as a security measure:)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://197400]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2015-07-07 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls