![]() |
![]() Fall Semester 2002 |
Turning in LAB ASSIGNMENT TWO:
First of all in this lab you need to show two things:
crontab
file
You also need to make sure you have your
conspicuously indexed somewhere on your server's home page.hello
, ...,helloFive
LAB ASSIGNMENT THREE
In this lab you will be setting up a password protected directory. You will be using these settings to hand in your assignments. Here's what you need to do:
burrowww.cs.indiana.edu
and go to your ServerRoot
directory
cd /u/username/apache/apache_1.3.22
/u/dgerman/public/passwd
to your ServerRoot
cp /u/dgerman/public/passwd .
Note that the command above assumes that you're in your ServerRoot
already (the dot).
DocumentRoot
.
Call the new directory: protected
Your DocumentRoot
is most likely htdocs
.
index.html
in your protected
directory. Make it as simple as you want but write something in it.
httpd.conf
and add this to the file:
<Directory /u/username/apache/apache_1.3.22/htdocs/protected> AuthName Protected AuthType Basic AuthUserFile /u/username/apache/apache_1.3.22/passwd <Limit GET POST> require user dgerman </Limit> </Directory>
Add it after the comments that include this fragment:
and before the comment that starts like this:# # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # ...
Please don't forget to put your username in the TWO highlighted places.# # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. #
Since there's more than one way to do it, I'll let you do it your way.
This is part of your next assignment. Once your setup is complete you can start moving (copying) your
assignments into this new directory where they can only be seen by username dgerman
in
exchange for the password listed in the file you transferred.
Make sure that the umask
of the files in protected
is 700
.
protected
directory. Here's what you need to do to add
the user and define the password.
/u/dgerman/bin/htpasswd
in your ~/bin
directory.
burrowww.cs.indiana.edu% ~/bin/htpasswd ~/apache/apache_1.3.22/passwd lbird Adding user lbird New password: Re-type new password: burrowww.cs.indiana.edu%
httpd.conf
(just add one more require user
line)
AuthUserFile /u/username/apache/apache_1.3.22/passwd <Limit GET POST> require user dgerman require user lbird </Limit>
Be
careful allowing access to your directory, and if you give access to yourself
don't type your network password, use a different password, some string that you
want to use for testing only.
A348/A548