Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 540 #566
i
i
i
i
i
i
i
i
Alias
Using an alias, specify a shortcut for a directory that enables direct access
to this directory. For example, the alias /manual/ enables access to the
directory /srv/www/htdocs/manual even if the DocumentRoot is set
to a directory other than /srv/www/htdocs (the alias makes no differ-
ence at all if the DocumentRoot is set to that directory). With this alias,
http://localhost/manual enables direct access to the respective di-
rectory. To define the permissions for the new target directory as specified
with an Alias directive, you may want to specify a Directory directive
for it (see Section 22.7.2 on page 538)
ScriptAlias
This directive is similar to Alias. In addition, it indicates that the files in
the target directory should be treated as CGI scripts.
Server-Side Includes
Server-side includes can be activated by searching all executable files for
SSIs. This can be done with the following instruction:
<IfModule mod_include.c>
XBitHack on </IfModule>
To search a file for SSIs, use the command chmod +x hfilenamei to
make the file executable. Alternatively, explicitly specify the file type to
search for SSIs. This can be done with the following instruction:
AddType text/html .shtml
AddHandler server-parsed .shtml
It is not advisable to simply state .html, as this causes Apache to search
all pages for SSIs (even those that definitely do not contain any), which
greatly impedes the performance. In SUSE LINUX, these two directives
are already included in the configuration files, so normally no changes are
necessary.
UserDir
With the help of the module mod_userdir and the directive UserDir,
specify a directory in a user’s home directory from which files may be pub-
lished through Apache. This can be configured in SuSEconfig by setting
540 22.7. Configuration