.htaccess file
- What does a basic .htaccess file look like?
- I want to use .htaccess, but I don't know the path to my files.
What does a basic .htaccess file look like?
Here is an example on what at .htaccess file should look like:
<Limit GET>AuthUserFile /site/ae/groups/htdocs/<mygroup>/<mysecuredirectory>/.htpasswd
AuthName "Enter Password"
AuthType Basic
require valid-user
</Limit>
Here is what a typical .htpasswd file should look like:
user1:as134Yd32291DSLDFa
user2:3124ASDasdf2314daA
The following website can be used to create encrypted entries:
The .htaccess file should be located in the directory you wish to secure and the .htpasswd should be located in the directory referenced in the .htaccess file.
I want to use .htaccess, but I don't know the path to my files.
Given the setup and the lack of direct access to the files. .htaccess is slightly more difficult to configure. The path you the files on the server are as follows:
http://www.ae.uiuc.edu/<some_dir>/<some_other_dir> would be here:
/site/ae/groups/htdocs/<some_dir>/<some_other_dir>
For example:
http://www.ae.uiuc.edu/aiaa would be located here:
/site/ae/groups/htdocs/aiaa
or
http://www.ae.uiuc.edu/sis would be located here:
/site/ae/groups/htdocs/sis

