|
Htaccess files on UofL's web servers.htaccess files are used for a number of reasons in a web directory. They can control customized error messages for that part of the site, special file types being served out of that directory, access control, and a couple other nifty things. The access control is the most common use for them. There is a tutorial for how to do much of the stuff we will be talking about at: http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.htmlIt says NCSA httpd and Mosaic, but our server is derived from the NCSA server and supports everything they do. There is also a pretty good list of the directives we will be putting in these files at: http://www.apache.org/docs/mod/directives.htmlThe document covers Run-Time directives for the server, which is what these commands really are. Anything that is said to work in .htaccess will work on UofL's web servers in an .htaccess file. Sample .htaccess files:
Creating the htpasswd files:
You have now made an htpasswd file. Repeat the procedure to add more users to the file. Creating an htgroups file:
Creating htaccess files on University of Louisville's Intranet site: For UofL's Intranet (any URL that begins with http://uofl.louisville.edu/) , there are limits already in place. If you want to add to those limits, there is more to be done. If you want to require a password for every one that visits an Intranet page, then you will need a htaccess file that looks similiar to this.
|