Before 1.5.0, mod_mysql_vhost
was self-contained. In 1.5.0, the non-MySQL-specific parts have been pulled into mod_sql_vhost_core
, so there may be more database backends in the future. In 1.5.0, the server.modules
needs both entries in the above order. Refer to Chapter 3 for more information.
Name |
Type |
Description |
---|---|---|
mysql-vhost.db mysql-vhost.hostname mysql-vhost.pass mysql-vhost.port mysql-vhost.sock mysql-vhost.sql mysql-vhost.user sql-vhost.backend sql-vhost.cache-ttl sql-vhost.db sql-vhost.debug sql-vhost.hostname sql-vhost.pass sql-vhost.port sql-vhost.select-vhost sql-vhost.sock sql-vhost.user |
ABC ABC ABC 123 ABC ABC ABC ABC 123 ABC 123 ABC ABC 123 ABC ABC ABC |
mod_mysql_vhost as user using pass as password will connect to hostname:port, uses the db database and executes the sql statement which has a ? as placeholder for the hostname (italic words are directives, to be prefixed with mysql-vhost) The backend (only "mysql" for now) The Cache Time-to-live in seconds The new mysql-vhost.db Sets the debug level for this module The new mysql-vhost.hostname The new mysql-vhost.pass The new mysql-vhost.port The new mysql-vhost.sql A socket for a local database server The new mysql-vhost.user |