|
Controlling access to web directories on pangeaLast revision July 20, 2004
The Apache web server that runs on pangea includes many features for customizing operation and controlling access to pages. On pangea, we have configured Apache to check each web directory that it serves for a "directives" file named .htaccess (the leading period (.) is part of the name). You are allowed to use certain directives in this file, as listed below, to control who can access the files contained within your personal or group directory. These restrictions that you specify apply to all files in the directory, so you may want to just apply restrictions to a sub-directory, which you must create. You have four choices for the type of access restriction you can make:
In each case, you must create a .htaccess file in the directory that is being restricted. You can use your favorite text editor on pangea, such as pico or vi to make the file. Or you can make the file on your PC or Mac, saving it as Text Only with Line Breaks, and loading it up to pangea. A simple editor such as Notepad on Windows PCs or SimpleText on Macintosh works best if you want to make the file on your PC. The contents of the file will differ, depending upon which of the four access restrictions you want. WARNING: the access control methods described here apply only to web browser access to the restricted files. Anyone with a login account on the web server (for example, anyone with an account on pangea) can still use normal Unix programs to look at the restricted files, because you must still set Unix file permissions on your directory and files to allow "world" read access. If you try to use the Unix chmod program to turn off world read access, to prevent this Unix snooping, then the web server will also not be able to see these files, and it will not be able to serve them to anyone. These access methods are useful for preventing any random person from examining a set of web pages using his browser, but it does not make them perfectly private.
|