Yawn offers you a way to specify a "shorthand" for frequently used paths. In the httpd.cfg file you can specify aliases for directories, as well as Redirect directives, which allow you to tell the browser to look elsewhere for a document that has moved. A special kind of an alias is the ScriptAlias - a directory in which external scripts are stored.
To create an alias for a directory, you need to add an Alias directive to the configuration file - one directive for one alias, with as many of them as you wish:
Alias fakename realname, e.g.
Alias /images http://your.site/images
Alias /software sys:users/artur/software
Using the directive:
ScriptAlias fakename realname, e.g.
ScriptAlias /cgi-bin sys:system/httpd/cgi-bin
allows you to shorten the name you have to type while creating a file referencing external programs, and also to restrict the presence of such programs to the directories specified in the configuration file.
Redirecting is useful when a given resorce is not available under its original name or at its original location, or e.g. when you want to point to a different site without entering the full URL each time. By using a directive like:
Redirect fakename url, e.g.
Redirect /cgi-bin/finger
http://www.lublin.pl/cgi-bin/finger/finger
You can tell the browser to find the requested item at another place. This is done by returning a Location HTTP header with the 304 error message "Moved". If your browser cannot recognize the Location header, you will stil be given an HTML file with a link to the requested resource.
[Home -
Overview -
Downloading -
Installation -
Configuration -
Implementation notes -
License -
Registering -
Contacts]