mod_vhost_mysql2 0.11 review

Download
by rbytes.net on

License: GPL (GNU General Public License)
File size: 4K
Developer: Fabian Bluemel
0 stars award from rbytes.net

mod_vhost_mysql2 provides dynamically configured Virtual Hosting in Apache2.

Requirements:
Apache 2.x

Installation:

1) Make mod_vh_mysql as a DSO module.

% make APXS=/path/to/apxs2
# make install

OR

Copy .libs/mod_vhost_mysql.so to the Apache modules directory.

MySQL Setup:

CREATE TABLE vh (
id int(11) NOT NULL auto_increment,
docroot varchar(255) NOT NULL,
servername varchar(255) NOT NULL,
alias1 varchar(255) NOT NULL,
alias2 varchar(255) NOT NULL,
alias3 varchar(255) NOT NULL,
PRIMARY KEY (id)
);

INSERT your VirthalHost setting.

INSERT INTO vh VALUES('',www.example.com','mail.example.com',
'test1.example.com','test2.example.com',
'/path/to/example.com/htdocs');

CONFIG EXAMPLE

To load the module


UseCanonicalName Off

VhMySQLEngine On
VhMySQLDBName vh
VhMySQLDBUser apache
VhMySQLDBPassword secret

VhMySQLTableName vh
VhMySQLServerNameField servername
VhMySQLDocRootField docroot
VhMySQLAlias1Field alias1
VhMySQLAlias2Field alias2
VhMySQLAlias3Field alias3

mod_vhost_mysql2 0.11 keywords