DCO > Knowledge Base |
|||||||||||
Our web server runs HTTPD, which allows for the use of '.htaccess' files to control server behavior for your website. To take advantage of this, simply use a text editor to create a filed called '.htaccess' and put it in your '~/public_html' directory. Here are some examples of '.htaccess' file contents: Redirect to another directory
Simple password protection
Where '.htpasswd' is a password file created by running the commmand:
You can always add more users to this file later by running the same command without the '-c' directive. More information on this command can be found here. Cosign Password Protection To secure access to a directory using University of Michigan uniquenames and passwords, you can employ the university's single sign on system, Cosign. Here's an example.
Where 'user1', 'user2', and 'user3' are the uniquenames of the people you would like to grant access to. Please note that this only works with HTTPS, and not HTTP. If a user attempts to access that directory with HTTPS, they will see an error message. Allow access only to users from within the UM network
This is just a taste of the power of '.htaccess' files. For more information, see this page.
Powered by LionWiki | Admin | Incoming Links |