Installation guide
Chapter 14. Apache HTTP Server 185
14.2.4.3. The mod_include Module
The mod_include module is now implemented as a filter (see Section 14.2.4 for more on filters) and
is therefore enabled differently.
For example, the following is a sample Apache HTTP Server 1.3 directive:
AddType text/html .shtml
AddHandler server-parsed .shtml
To migrate this setting to Apache HTTP Server 2.0, use the following structure:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Note that just as before, the Options +Includes directive is still required for the Directory
section or in a .htaccess file.
For more on this topic, refer to the following documentation on the Apache Software Foundation’s
website:
• http://httpd.apache.org/docs-2.0/mod/mod_include.html
14.2.4.4. The mod_auth_dbm and mod_auth_db Modules
Apache HTTP Server 1.3 supported two authentication modules, mod_auth_db and mod_auth_dbm,
which used Berkeley Databases and DBM databases respectively. These modules have been combined
into a single module named mod_auth_dbm in Apache HTTP Server 2.0, which can access several
different database formats. To migrate from mod_auth_db in version 1.3, configuration files should
be adjusted by replacing AuthDBUserFile and AuthDBGroupFile with the mod_auth_dbm equiv-
alents: AuthDBMUserFile and AuthDBMGroupFile. Also, you must add the directive AuthDBM-
Type DB to indicate the type of database file in use.
The following example shows a sample mod_auth_db configuration for Apache 1.3:
Location /private/>
AuthType Basic
AuthName "My Private Files"
AuthDBUserFile /var/www/authdb
require valid-user
/Location>
To migrate this setting to version 2.0 of Apache HTTP Server, use the following structure:
Location /private/>
AuthType Basic
AuthName "My Private Files"
AuthDBMUserFile /var/www/authdb
AuthDBMType DB
require valid-user
/Location>
Note that the AuthDBMUserFile directive can also be used in .htaccess files.
The dbmmanage Perl script, used to manipulate username and password databases, has been replaced
by htdbm in Apache HTTP Server 2.0. The htdbm program offers equivalent functionality and like
mod_auth_dbm can operate a variety of database formats; the -T option can be used on the command
line to specify the format to use.
Table 14-1 shows how to migrate from a DBM-format database to htdbm format using dbmmanage.