4. Additional modules

4.1. mod_dav

4.1.1. What is mod_dav

 

mod_dav is an Apache module to provide DAV capabilities (RFC 2518) for your Apache web server. It is an Open Source module, provided under an Apache-style license.

 
--www.webdav.org 

From the authors point of view:

DAV means: »Distributed authoring and Versioning«. It allows you to manage your Website similar to a filesystem. It is meant to replace ftp-uploads to your webserver.

DAV is supported by all major web development tools (newer versions) and is going to be a widely accepted standard for webpublishing.

4.1.2. Download the source

Origin-Site: http://www.webdav.org/mod_dav/

4.1.3. Building and installing

cd /usr/local

tar -xvzf mod_dav-1.0.3-1.3.6.tar.gz
cd mod_dav-1.0.3-1.3.6

./configure --with-apxs=/usr/local/apache/bin/apxs

make
make install

TipConfusing filename
 

The filename mod_dav-1.0.3-1.3.6 suggests that it will only run with Apache 1.3.6 but it actually will run with all Apaches >= 1.3.6

4.2. auth_ldap

4.2.1. What is auth_ldap

 

auth_ldap is an LDAP authentication module for Apache, the world's most popular web server. auth_ldap has excellent performance, and supports Apache on both Unix and Windows NT. It also has support for LDAP over SSL, and a mode that lets Frontpage clients manage their web permissions while still using LDAP for authentication.

 
--www.rudedog.org 

From the authors point of view:

If you like to consolidate your login-facilities to a common user/passwd base, LDAP (Lightweight Directory Access Protocol) is the right way. LDAP is an open standard and widely supported.

Login-facilities for LDAP:

Unix-Logins for Linux, Solaris (others?) FTP-Logins (some ftp-daemons) http Basic Authentication Tarantella Authentication and Role-Management Samba Authentication (2.2.x should support this) LDAP is role based. That means, i.e. you can define a role »manager« assign a user as member and that user can login wherever a manager is allowed to login.

4.2.2. Download the source

Origin-Site: http://www.rudedog.org/auth_ldap/

4.2.3. Building and installing

cd /usr/local

tar -xvzf auth_ldap-1.6.0.tar.gz

cd auth_ldap-1.6.0

./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-sdk=openldap

make
make install

4.3. mod_auth_mysql

4.3.1. What is mod_auth_mysql

It is a http-Basic Authentication Module. It allows to maintain your user comfortable in a MySQL-Database

4.3.2. Download the source

Origin-Site: ftp://ftp.kciLink.com/pub/mod_auth_mysql.c.gz

4.3.3. Building and installing

gunzip mod_auth_mysql.c.gz

/usr/local/apache/bin/apxs \
-c -I/usr/local/mysql/include \
-L/usr/local/mysql/lib/mysql \
-lmysqlclient -lm mod_auth_mysql.c

cp mod_auth_mysql.so /usr/local/apache/libexec/

Add this line in your httpd.conf:

LoadModule mysql_auth_module libexec/mod_auth_mysql.so

And where the other modules are added:

AddModule mod_auth_mysql.c

Take care that the path of MySQL libraries and includes are correct.

TipLibrary path
 

Be sure that /usr/local/mysql/lib/mysql is in /etc/ld.so.conf before compiling

4.3.4. Sample configuration

Example 1. /usr/local/apache/conf/httpd.conf

<location /manual/>
  AuthType Basic
  AuthUserfile /dev/null
  AuthName Testing
  AuthGroupFile /dev/null
  AuthMySQLHost localhost
  AuthMySQLCryptedPasswords Off
  AuthMySQLUser root
  AuthMySQLDB users
  AuthMySQLUserTable user_info
  <Limit GET POST>
    require valid-user
  </limit>
</location>

4.3.4.1. Script for creating the MySQL-Database

just type:

mysql < authmysql.sql

The File authmysql.sql contents:

Example 2. authmysql.sql

  create database http_users;
  connect http_users;

  CREATE TABLE user_info (
  user_name CHAR(30) NOT NULL,
  user_passwd CHAR(20) NOT NULL,
  user_group CHAR(10),
  PRIMARY KEY (user_name);

4.4. mod_dynvhost

4.4.1. What is mod_dynvhost

It is a module that allows to define new Virtual Host "on-the-fly". Just create a new Directory in your vhost-path, thats it. It is not need to restart your Webserver

It is a good solution for Mass-Virtual-hosting for ISP's

4.4.3. Building and installing

cd /usr/local

tar -xvzf mod_dynvhost.tar.gz

cd dynvhost/

/usr/local/apache/bin/apxs -i -a -c mod_dynvhost.c

TipCheck httpd.conf
 

Notice: Take a look at httpd.conf if mod_dynvhost.so is loaded at startup:

LoadModule dynvhost_module libexec/mod_dynvhost.so

4.4.4. Sample configuration

Example 3. /usr/local/apache/conf/httpd.conf

<DynamicVirtualHost /usr/local/apache/htdocs/vhosts/> 
  HomeDir / 
</DynamicVirtualHost>

Now create a Directory for each virtualhost in /usr/local/apache/htdocs/vhosts/

i.e.

/usr/local/apache/htdocs/vhosts/foo.bar.org

You don't need to restart your Webserver

4.5. mod_roaming

4.5.1. What is mod_roaming

 

With mod_roaming you can use your Apache webserver as a Netscape Roaming Access server. This allows you to store your Netscape Communicator 4.5 preferences, bookmarks, address books, cookies etc. on the server so that you can use (and update) the same settings from any Netscape Communicator 4.5 that can access the server.

 
--www.klomp.org/mod_roaming/ 

From the authors point of view:

Mod_roaming is indeed valuable. Unfortunately it does not work over proxy-connection. You can keep your Netscape 4.x bookmarks etc. synchronized on different machines. It is not supported by any other browsers, including Mozilla and Netscape 6.x.

4.5.2. Download the source

Origin-Site: http://www.klomp.org/mod_roaming/

4.5.3. Building and installing

cd /usr/local 

tar -xvzf mod_roaming-1.0.2.tar.gz

cd mod_roaming-1.0.2

/usr/local/apache/bin/apxs -i -a -c mod_roaming.c

TipCheck httpd.conf
 

Check httpd.conf if mod_roaming is loaded at startup:

LoadModule roaming_module libexec/mod_roaming.so

4.5.4. Sample configuration

Example 4. /usr/local/apache/conf/httpd.conf

RoamingAlias /roaming /usr/local/apache/roaming
<Directory /usr/local/apache/roaming>
  AuthUserFile /usr/local/apache/conf/roaming-htpasswd
  AuthType Basic
  AuthName "Roaming Access"
  <Limit GET PUT MOVE DELETE>
    require valid-user
  </Limit>
</Directory>