Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | HTTP Password. |
From: | Richard |
Date: | Tue, 12 May 1998 20:40:42 +0100 |
Since I have little to add as per Flash (but workinmg on it) allow me to offer
some tips on how to use htpassword to protect the files in a directory in a
UNIX directory.
The web document to be protected.
Actually, access is restricted by directory so all files in the same directory
will be protected.
First crete the file-> .htaccess <- using a text editor in UNIX like the
simple PICO or for the more ambitous, Vi.
Notice the period before the htaccess that makes the file exectuable via Born,
Korn CShell etc.
.
This file should be in the directory which contains the documents to restrict
access to. The contents of this file are just the what the later password file
calls.
For example if you were user 'flasher' with web documents in the local
directory "/home/flasher/public_html/flashdemos" that you wanted to restrict
access to, your .htaccess might look like:
AuthUserFile /home/flasher/public_html/flashdemos/.htpasswd
AuthName flasher_flashdemos
AuthType Basic
<Limit GET>
require valid-user
</Limit>
Note that .htaccess will not work if there are extra spaces after AuthUserFile.
The file .htpasswd.
This file contains the passwords of the users.
To create the .htpasswd file log in to this server using telnet, change
directory to the directory you want to restrict access to, and type:
htpasswd -c .htpasswd someone
for the first user (where someone is the username). You will then be prompted
twice for the user's password. The -c option causes the .htpasswd file to be
created. For each additional user type:
htpasswd .htpasswd someuser
piece of cake.
> > Nope, .htaccess files are used to restrict access to documents,
> > not to control mime types. If your server is using apache as a web
> > browser, all you have to do is edit the mime.types document inyour /conf
> > directory and add
> > application/x-shockwave-flash .swf
> > and then restart your webserver using
> > kill -HUP pid_of_server
> > where pid_of_server is the process id of your web server.
> > normally stored ina file called httpd.pid (again, if you are using
> > apache), in your logs directory. Let me know if you need more details.
>
>
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managershocker [dot] com. Problems to: ownershocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-managershocker [dot] com
Replies
Re: HTTP Password., Dave Smith
Replies
Re: Might be old news, but Flash 3 start, Jason Nugent
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]