Creating .htpasswd files
Use these instructions to password protect directories via .htaccess. Note that this
works only with sites hosted on DCANet's Unix servers.
You must use this interface to create passwords for your .htpasswd files for
limiting access to pages. (For more information on secure web pages and
.htpasswd files, see NCSA's
security tutorial.) The reason you must use this interface is that the
DCANet web server runs a different version of Unix than does the Unix
machine that is used by DCANet customers (universal.dca.net). This means
that passwords generated on universal.dca.net cannot be interpreted by our
web server.
To create a password entry that you can use to add to your .htpasswd, enter
the username and password in the form below and press the "Submit"
button. If you do not enter a password, a random password will
be automatically generated.
Enter the username and password:
|
Example::
Location of .htpasswd file |
universal.dca.net:/home/joeuser/.htpasswd |
Contents of .htpasswd file |
foouser:$1$eP$uCnhSHdCbteSgMCLn7Dcj.
jqpublic:$1$Z1$XghwFtqeIlj4tLLO9cRGP0 |
Location of .htaccess file |
universal.dca.net:/home/joeuser/public_html/somedir/.htaccess |
Contents of .htaccess file |
AuthUserFile /universal/home/joeuser/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
<Limit GET>
require user jqpublic
require user foouser
</Limit> |
Make sure the .htaccess & .htpasswd files are world-readable!
chmod a+r .htaccess
chmod a+r .htpasswd
DCANet provides this page as a service to its clients. DCANet offers no guarantees as to the accuracy of the information herein and assumes no responsibility for the consequences of its use.
|