World Wide Web at nikhef.nl
General info
NIKHEF offers World Wide Web (HTTP) service at the machine www.nikhef.nl .
NIKHEF homepage
The NIKHEF homepage can be invoked via the URL
-
http: //www.nikhef.nl/
All public information is available via the syntax
-
http: //www.nikhef.nl / pub / category / . . .
In principle all data must be contained within the /www directory tree. Symbolic links that point to data outside the tree are in general not followed, unless they refer to files or directories that are owned by the owner of the link.
The /www directory tree must be world readable in order to be visible. In general, directories must have access mode 755, and files must have access mode 644.
Personal homepages
NIKHEF users with a UNIX login account can make their own personal homepage. Such homepage can be accessed via the URL
-
http: //www.nikhef.nl / user / login -
http: //www.nikhef.nl / ~ login
In principle all data must be contained within that directory and its subdirectories. Symbolic links that point to data outside the public_html directory tree are in general not followed, unless they refer to files or directories that are owned by the same user.
The public_html directory tree must be world readable in order to be visible. In general, directories must have access mode 755, and files must have access mode 644. Since the public_html directory resides within the home directory, also the home directory itself must be world readable with access mode 755.
Access control
If NIKHEF users want to protect a WWW directory so that the pages therein are only accessible for certain users after supplying a password, the following setup is recommended.
-
Create a http password file in the top of your home directory, with the name .htpasswd and make sure it is world readable. This password file will contain entries of the form
in which username is an arbitrary name, and passwd is the associated encrypted password. Entries in this file are added or changed via the htpasswd command. Just create an empty file before you do this for the first time.username : passwd
-
In the WWW directory that you want protected, create a file with the name .htaccess and make sure it is world readable. This access file should contain the following
In which description describes the directory you want to protect (usually the name of the directory), login is your own login (account) name, and username is the name of a user in the http password file who will get access after supplying the associated password.AuthName description
AuthType Basic
AuthUserFile / user / login / . htpasswd
<Limit GET>
Require user username
</Limit>
URL syntax
- The URL for the http protocol has the following syntax
-
http: //hostname [ : port ] / [ pathname ]
In case an HTML document refers to another document on the same server, the protocol and hostname may be omitted, just leaving the pathname. If no leading slash is present, it is relative to the current directory where the referring HTML document resides. Otherwise, it is relative to the start of the www repository on the server.
If the rightmost component of the pathname specifies a file, that file will be retrieved. If it is a directory, the server looks for a file with a fixed name, usually index.html , within that directory. If it doesn't exist, a listing will be produced of that directory.
An optional suffix #marker to a filename causes the file to be displayed starting at the anchor that defines the marker. Otherwise, the file will be displayed from the top.
If the filename refers to a cgi-bin script, optional parameters may be appended to be interpreted by that script. The syntax for specifying such parameters is not explained here.
- The URL for the ftp protocol has the following syntax
-
ftp: //hostname / [ pathname ]
If the rightmost component of the pathname specifies a file, that file will be retrieved. If it is a directory, a listing will be produced of that directory.
- The URL for the mailto protocol has the following syntax
-
mailto: address
CGI scripts
The execution of cgi-bin scripts and programs is restricted to the webmaster only, and is in general prohibited from use in personal homepages. Utilities that are often used may be installed by the webmaster in the NIKHEF cgi-bin directory.