Turning in LAB ASSIGNMENT TWO:
First of all in this lab you need to show two things:
You also need to make sure you have your
conspicuously indexed somewhere on your server's home page.
LAB ASSIGNMENT THREEIn 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.eduand go to your
cp /u/dgerman/public/passwd .
Note that the command above assumes that you're in your
ServerRoot already (the dot).
Call the new directory:
DocumentRoot is most likely
Make it as simple as you want but write something in it.
httpd.confand add this to the file:
<Directory /u/username/apache/apache_1.3.20/htdocs/protected> AuthName Protected AuthType Basic AuthUserFile /u/username/apache/apache_1.3.20/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
exchange for the password listed in the file you transferred.
Make sure that the
umask of the files in
protecteddirectory. Here's what you need to do to add the user and define the password.
burrowww.cs.indiana.edu% ~/bin/htpasswd ~/apache/apache_1.3.20/passwd lbird Adding user lbird New password: Re-type new password: burrowww.cs.indiana.edu%
httpd.conf(just add one more
AuthUserFile /u/username/apache/apache_1.3.20/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.