Difference between revisions of "Htaccess"

 
Line 1: Line 1:
−
'''.htaccess''' (''[[Hypertext]] Access'') is the default name of [[Apache HTTP Server|Apache's]] directory-level [[configuration file]]. It provides the ability to customize configuration directives defined in Apache's main configuration file, and is an easy way to customize access to certain directories on Âé¶¹ÊÓÆµ websites.
+
'''.htaccess''' (''[[Hypertext]] Access'') is the default name of [[Apache HTTP Server|Apache's]] directory-level [[configuration file]]. It provides the ability to customize configuration directives defined in Apache's main configuration file, to modify the access to and behavior of certain directories on our [[web server]].
  
−
==Creating <code>.htaccess</code> Files==
+
==Creating <code>.htaccess</code> files==
 
It's important that you use a text editor which does not place [[carriage returns]] at the end of lines, as these can cause problems when Apache is trying to read the files. Almost every text editor on [[Windows]] will stick these carriage returns in, so we recommend you [ssh] into <code>charlotte.gac.edu</code> and create your file with one of the many editors installed on the server, such as [[emacs]], [[vi]], [[pico]], or [[nano]].
 
It's important that you use a text editor which does not place [[carriage returns]] at the end of lines, as these can cause problems when Apache is trying to read the files. Almost every text editor on [[Windows]] will stick these carriage returns in, so we recommend you [ssh] into <code>charlotte.gac.edu</code> and create your file with one of the many editors installed on the server, such as [[emacs]], [[vi]], [[pico]], or [[nano]].
 +
 +
==Password-protecting directories==
 +
The most common reason for using a .htaccess file is to restrict access to a directory.
 +
===Restrict access to users on campus===
 +
{{section-stub}}
 +
===Restrict access to a user===
 +
{{section-stub}}
 +
===Restrict access to a group===
 +
{{section-stub}}

Revision as of 11:00, 22 September 2006

.htaccess (Hypertext Access) is the default name of Apache's directory-level configuration file. It provides the ability to customize configuration directives defined in Apache's main configuration file, to modify the access to and behavior of certain directories on our web server.

Creating .htaccess files

It's important that you use a text editor which does not place carriage returns at the end of lines, as these can cause problems when Apache is trying to read the files. Almost every text editor on Windows will stick these carriage returns in, so we recommend you [ssh] into charlotte.gac.edu and create your file with one of the many editors installed on the server, such as emacs, vi, pico, or nano.

Password-protecting directories

The most common reason for using a .htaccess file is to restrict access to a directory.

Restrict access to users on campus

Restrict access to a user

Restrict access to a group