2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
#include <unistd.h>
|
2018-03-25 07:45:05 +00:00
|
|
|
#include <stdlib.h>
|
2016-10-05 09:54:01 +00:00
|
|
|
#include <string.h>
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2005-08-15 15:30:16 +00:00
|
|
|
#include <mysql.h>
|
2005-09-26 08:54:34 +00:00
|
|
|
|
2018-03-25 07:45:05 +00:00
|
|
|
#include "base.h"
|
2005-09-26 08:54:34 +00:00
|
|
|
#include "plugin.h"
|
2017-03-28 04:04:31 +00:00
|
|
|
#include "fdevent.h"
|
2005-09-26 08:54:34 +00:00
|
|
|
#include "log.h"
|
|
|
|
|
|
|
|
#include "stat_cache.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
/*
|
2006-10-04 13:26:23 +00:00
|
|
|
* Plugin for lighttpd to use MySQL
|
2005-02-20 14:27:00 +00:00
|
|
|
* for domain to directory lookups,
|
|
|
|
* i.e virtual hosts (vhosts).
|
2006-10-04 13:26:23 +00:00
|
|
|
*
|
2005-02-20 14:27:00 +00:00
|
|
|
* /ada@riksnet.se 2004-12-06
|
|
|
|
*/
|
|
|
|
|
2005-07-28 20:55:55 +00:00
|
|
|
typedef struct {
|
2019-11-03 15:52:51 +00:00
|
|
|
MYSQL *mysql;
|
|
|
|
const buffer *mysql_query;
|
2005-02-20 14:27:00 +00:00
|
|
|
} plugin_config;
|
|
|
|
|
|
|
|
typedef struct {
|
2019-11-03 15:52:51 +00:00
|
|
|
PLUGIN_DATA;
|
|
|
|
plugin_config defaults;
|
|
|
|
plugin_config conf;
|
2006-10-04 13:26:23 +00:00
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer tmp_buf;
|
2005-02-20 14:27:00 +00:00
|
|
|
} plugin_data;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
buffer *server_name;
|
|
|
|
buffer *document_root;
|
|
|
|
} plugin_connection_data;
|
|
|
|
|
|
|
|
INIT_FUNC(mod_mysql_vhost_init) {
|
2019-11-03 15:52:51 +00:00
|
|
|
return calloc(1, sizeof(plugin_data));
|
|
|
|
}
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
/* cleanup the mysql connections */
|
2019-11-19 08:39:40 +00:00
|
|
|
FREE_FUNC(mod_mysql_vhost_cleanup) {
|
|
|
|
plugin_data * const p = p_d;
|
|
|
|
free(p->tmp_buf.ptr);
|
2019-11-03 15:52:51 +00:00
|
|
|
if (NULL == p->cvlist) return;
|
|
|
|
/* (init i to 0 if global context; to 1 to skip empty global context) */
|
|
|
|
for (int i = !p->cvlist[0].v.u2[1], used = p->nconfig; i < used; ++i) {
|
|
|
|
config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0];
|
|
|
|
for (; -1 != cpv->k_id; ++cpv) {
|
|
|
|
if (cpv->vtype != T_CONFIG_LOCAL || NULL == cpv->v.v) continue;
|
|
|
|
switch (cpv->k_id) {
|
|
|
|
case 1: /* mysql-vhost.db */
|
|
|
|
mysql_close(cpv->v.v);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
|
|
|
|
2020-01-13 02:51:12 +00:00
|
|
|
static void* mod_mysql_vhost_connection_data(request_st * const r, void *p_d)
|
2005-02-20 14:27:00 +00:00
|
|
|
{
|
|
|
|
plugin_data *p = p_d;
|
2020-01-13 02:51:12 +00:00
|
|
|
plugin_connection_data *c = r->plugin_ctx[p->id];
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
if (c) return c;
|
|
|
|
c = calloc(1, sizeof(*c));
|
|
|
|
|
|
|
|
c->server_name = buffer_init();
|
|
|
|
c->document_root = buffer_init();
|
|
|
|
|
2020-01-13 02:51:12 +00:00
|
|
|
return r->plugin_ctx[p->id] = c;
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
|
|
|
|
2020-07-25 12:23:58 +00:00
|
|
|
REQUEST_FUNC(mod_mysql_vhost_handle_request_reset) {
|
2005-02-20 14:27:00 +00:00
|
|
|
plugin_data *p = p_d;
|
2020-01-13 02:51:12 +00:00
|
|
|
plugin_connection_data *c = r->plugin_ctx[p->id];
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
if (!c) return HANDLER_GO_ON;
|
|
|
|
|
|
|
|
buffer_free(c->server_name);
|
|
|
|
buffer_free(c->document_root);
|
|
|
|
|
|
|
|
free(c);
|
|
|
|
|
2020-01-13 02:51:12 +00:00
|
|
|
r->plugin_ctx[p->id] = NULL;
|
2005-02-20 14:27:00 +00:00
|
|
|
return HANDLER_GO_ON;
|
|
|
|
}
|
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
static void mod_mysql_vhost_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * const cpv) {
|
|
|
|
switch (cpv->k_id) { /* index into static config_plugin_keys_t cpk[] */
|
|
|
|
case 0: /* mysql-vhost.sql */
|
|
|
|
pconf->mysql_query = cpv->v.b;
|
|
|
|
break;
|
|
|
|
case 1: /* mysql-vhost.db */
|
|
|
|
if (cpv->vtype == T_CONFIG_LOCAL)
|
|
|
|
pconf->mysql = cpv->v.v;
|
|
|
|
break;
|
|
|
|
case 2: /* mysql-vhost.user */
|
|
|
|
case 3: /* mysql-vhost.pass */
|
|
|
|
case 4: /* mysql-vhost.sock */
|
|
|
|
case 5: /* mysql-vhost.hostname */
|
|
|
|
case 6: /* mysql-vhost.port */
|
|
|
|
break;
|
|
|
|
default:/* should not happen */
|
|
|
|
return;
|
|
|
|
}
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
static void mod_mysql_vhost_merge_config(plugin_config * const pconf, const config_plugin_value_t *cpv) {
|
|
|
|
do {
|
|
|
|
mod_mysql_vhost_merge_config_cpv(pconf, cpv);
|
|
|
|
} while ((++cpv)->k_id != -1);
|
|
|
|
}
|
2006-10-04 13:26:23 +00:00
|
|
|
|
2020-01-13 02:51:12 +00:00
|
|
|
static void mod_mysql_vhost_patch_config(request_st * const r, plugin_data * const p) {
|
2020-01-11 16:07:43 +00:00
|
|
|
p->conf = p->defaults; /* copy small struct instead of memcpy() */
|
|
|
|
/*memcpy(&p->conf, &p->defaults, sizeof(plugin_config));*/
|
2019-11-03 15:52:51 +00:00
|
|
|
for (int i = 1, used = p->nconfig; i < used; ++i) {
|
2020-01-13 02:51:12 +00:00
|
|
|
if (config_check_cond(r, (uint32_t)p->cvlist[i].k_id))
|
2019-11-03 15:52:51 +00:00
|
|
|
mod_mysql_vhost_merge_config(&p->conf,
|
|
|
|
p->cvlist + p->cvlist[i].v.u2[0]);
|
|
|
|
}
|
|
|
|
}
|
2006-10-04 13:26:23 +00:00
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
static MYSQL * mod_mysql_vhost_db_setup (server *srv, const char *dbname, const char *user, const char *pass, const char *sock, const char *host, unsigned short port) {
|
|
|
|
/* required:
|
|
|
|
* - database
|
|
|
|
* - username
|
|
|
|
*
|
|
|
|
* optional:
|
|
|
|
* - password, default: empty
|
|
|
|
* - socket, default: mysql default
|
|
|
|
* - hostname, if set overrides socket
|
|
|
|
* - port, default: 3306
|
|
|
|
*/
|
|
|
|
|
|
|
|
MYSQL * const my = mysql_init(NULL);
|
|
|
|
if (NULL == my) {
|
|
|
|
log_error(srv->errh, __FILE__, __LINE__,
|
|
|
|
"mysql_init() failed, exiting...");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
#if MYSQL_VERSION_ID >= 50013
|
|
|
|
/* in mysql versions above 5.0.3 the reconnect flag is off by default */
|
|
|
|
char reconnect = 1;
|
|
|
|
mysql_options(my, MYSQL_OPT_RECONNECT, &reconnect);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
unsigned long flags = 0;
|
|
|
|
#if MYSQL_VERSION_ID >= 40100
|
|
|
|
/* CLIENT_MULTI_STATEMENTS first appeared in 4.1 */
|
|
|
|
flags |= CLIENT_MULTI_STATEMENTS;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (!mysql_real_connect(my, host, user, pass, dbname, port, sock, flags)) {
|
2019-11-25 06:54:08 +00:00
|
|
|
log_error(srv->errh, __FILE__, __LINE__, "%s", mysql_error(my));
|
2019-11-03 15:52:51 +00:00
|
|
|
mysql_close(my);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
fdevent_setfd_cloexec(my->net.fd);
|
|
|
|
return my;
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
SETDEFAULTS_FUNC(mod_mysql_vhost_set_defaults) {
|
|
|
|
static const config_plugin_keys_t cpk[] = {
|
|
|
|
{ CONST_STR_LEN("mysql-vhost.sql"),
|
|
|
|
T_CONFIG_STRING,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ CONST_STR_LEN("mysql-vhost.db"),
|
|
|
|
T_CONFIG_STRING,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ CONST_STR_LEN("mysql-vhost.user"),
|
|
|
|
T_CONFIG_STRING,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ CONST_STR_LEN("mysql-vhost.pass"),
|
|
|
|
T_CONFIG_STRING,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ CONST_STR_LEN("mysql-vhost.sock"),
|
|
|
|
T_CONFIG_STRING,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ CONST_STR_LEN("mysql-vhost.hostname"),
|
|
|
|
T_CONFIG_STRING,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ CONST_STR_LEN("mysql-vhost.port"),
|
|
|
|
T_CONFIG_SHORT,
|
|
|
|
T_CONFIG_SCOPE_CONNECTION }
|
|
|
|
,{ NULL, 0,
|
|
|
|
T_CONFIG_UNSET,
|
|
|
|
T_CONFIG_SCOPE_UNSET }
|
|
|
|
};
|
|
|
|
|
2020-07-10 01:30:58 +00:00
|
|
|
log_error(srv->errh, __FILE__, __LINE__,
|
|
|
|
"mod_mysql_vhost is deprecated and will be removed in a future version; "
|
|
|
|
"please migrate to use mod_vhostdb_mysql");
|
|
|
|
|
2019-11-03 15:52:51 +00:00
|
|
|
plugin_data * const p = p_d;
|
|
|
|
if (!config_plugin_values_init(srv, p, cpk, "mod_mysql_vhost"))
|
|
|
|
return HANDLER_ERROR;
|
|
|
|
|
|
|
|
/* process and validate config directives
|
|
|
|
* (init i to 0 if global context; to 1 to skip empty global context) */
|
|
|
|
for (int i = !p->cvlist[0].v.u2[1]; i < p->nconfig; ++i) {
|
|
|
|
config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0];
|
|
|
|
const char *dbname=NULL, *user=NULL, *pass=NULL, *host=NULL, *sock=NULL;
|
|
|
|
unsigned short port = 0;
|
|
|
|
config_plugin_value_t *db = NULL;
|
|
|
|
for (; -1 != cpv->k_id; ++cpv) {
|
|
|
|
switch (cpv->k_id) {
|
|
|
|
case 0: /* mysql_vhost.sql */
|
|
|
|
break;
|
|
|
|
case 1: /* mysql_vhost.db */
|
|
|
|
if (!buffer_string_is_empty(cpv->v.b)) {
|
|
|
|
db = cpv;
|
|
|
|
dbname = cpv->v.b->ptr;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 2: /* mysql_vhost.user */
|
|
|
|
if (!buffer_string_is_empty(cpv->v.b))
|
|
|
|
user = cpv->v.b->ptr;
|
|
|
|
break;
|
|
|
|
case 3: /* mysql_vhost.pass */
|
|
|
|
if (!buffer_string_is_empty(cpv->v.b))
|
|
|
|
pass = cpv->v.b->ptr;
|
|
|
|
break;
|
|
|
|
case 4: /* mysql_vhost.sock */
|
|
|
|
if (!buffer_string_is_empty(cpv->v.b))
|
|
|
|
sock = cpv->v.b->ptr;
|
|
|
|
break;
|
|
|
|
case 5: /* mysql_vhost.hostname */
|
|
|
|
if (!buffer_string_is_empty(cpv->v.b))
|
|
|
|
host = cpv->v.b->ptr;
|
|
|
|
break;
|
|
|
|
case 6: /* mysql_vhost.port */
|
|
|
|
port = cpv->v.shrt;
|
|
|
|
break;
|
|
|
|
default:/* should not happen */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dbname && user) {
|
|
|
|
cpv = db;
|
|
|
|
cpv->v.v =
|
|
|
|
mod_mysql_vhost_db_setup(srv,dbname,user,pass,sock,host,port);
|
|
|
|
if (NULL == db->v.v) return HANDLER_ERROR;
|
|
|
|
cpv->vtype = T_CONFIG_LOCAL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* initialize p->defaults from global config context */
|
|
|
|
if (p->nconfig > 0 && p->cvlist->v.u2[1]) {
|
|
|
|
const config_plugin_value_t *cpv = p->cvlist + p->cvlist->v.u2[0];
|
|
|
|
if (-1 != cpv->k_id)
|
|
|
|
mod_mysql_vhost_merge_config(&p->defaults, cpv);
|
|
|
|
}
|
|
|
|
|
|
|
|
return HANDLER_GO_ON;
|
|
|
|
}
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2020-01-13 02:51:12 +00:00
|
|
|
REQUEST_FUNC(mod_mysql_vhost_handle_docroot) {
|
2005-02-20 14:27:00 +00:00
|
|
|
plugin_data *p = p_d;
|
|
|
|
plugin_connection_data *c;
|
|
|
|
|
|
|
|
unsigned cols;
|
|
|
|
MYSQL_ROW row;
|
|
|
|
MYSQL_RES *result = NULL;
|
|
|
|
|
|
|
|
/* no host specified? */
|
2020-01-13 02:51:12 +00:00
|
|
|
if (buffer_string_is_empty(&r->uri.authority)) return HANDLER_GO_ON;
|
2005-09-21 11:14:42 +00:00
|
|
|
|
2020-01-13 02:51:12 +00:00
|
|
|
mod_mysql_vhost_patch_config(r, p);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2005-10-06 08:14:58 +00:00
|
|
|
if (!p->conf.mysql) return HANDLER_GO_ON;
|
2016-10-05 09:54:01 +00:00
|
|
|
if (buffer_string_is_empty(p->conf.mysql_query)) return HANDLER_GO_ON;
|
2005-10-06 08:14:58 +00:00
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
/* sets up connection data if not done yet */
|
2020-01-13 02:51:12 +00:00
|
|
|
c = mod_mysql_vhost_connection_data(r, p_d);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
/* check if cached this connection */
|
2020-01-13 02:51:12 +00:00
|
|
|
if (buffer_is_equal(c->server_name, &r->uri.authority)) goto GO_ON;
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
/* build and run SQL query */
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer * const b = &p->tmp_buf;
|
|
|
|
buffer_clear(b);
|
|
|
|
for (const char *ptr = p->conf.mysql_query->ptr, *d; *ptr; ptr = d+1) {
|
|
|
|
if (NULL != (d = strchr(ptr, '?'))) {
|
2016-10-05 09:54:01 +00:00
|
|
|
/* escape the uri.authority */
|
|
|
|
unsigned long to_len;
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer_append_string_len(b, ptr, (size_t)(d - ptr));
|
2020-01-13 02:51:12 +00:00
|
|
|
buffer_string_prepare_append(b, buffer_string_length(&r->uri.authority) * 2);
|
2016-10-05 09:54:01 +00:00
|
|
|
to_len = mysql_real_escape_string(p->conf.mysql,
|
2019-11-03 15:52:51 +00:00
|
|
|
b->ptr + buffer_string_length(b),
|
2020-01-13 02:51:12 +00:00
|
|
|
CONST_BUF_LEN(&r->uri.authority));
|
2016-10-05 09:54:01 +00:00
|
|
|
if ((unsigned long)~0 == to_len) goto ERR500;
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer_commit(b, to_len);
|
2016-10-05 09:54:01 +00:00
|
|
|
} else {
|
|
|
|
d = p->conf.mysql_query->ptr + buffer_string_length(p->conf.mysql_query);
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer_append_string_len(b, ptr, (size_t)(d - ptr));
|
2016-10-05 09:54:01 +00:00
|
|
|
break;
|
|
|
|
}
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
2019-11-03 15:52:51 +00:00
|
|
|
if (mysql_real_query(p->conf.mysql, CONST_BUF_LEN(b))) {
|
2020-01-13 02:51:12 +00:00
|
|
|
log_error(r->conf.errh, __FILE__, __LINE__, "%s", mysql_error(p->conf.mysql));
|
2005-02-20 14:27:00 +00:00
|
|
|
goto ERR500;
|
|
|
|
}
|
|
|
|
result = mysql_store_result(p->conf.mysql);
|
|
|
|
cols = mysql_num_fields(result);
|
|
|
|
row = mysql_fetch_row(result);
|
|
|
|
if (!row || cols < 1) {
|
|
|
|
/* no such virtual host */
|
|
|
|
mysql_free_result(result);
|
2009-07-24 20:26:17 +00:00
|
|
|
#if MYSQL_VERSION_ID >= 40100
|
|
|
|
while (mysql_next_result(p->conf.mysql) == 0);
|
|
|
|
#endif
|
2005-02-20 14:27:00 +00:00
|
|
|
return HANDLER_GO_ON;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* sanity check that really is a directory */
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer_copy_string(b, row[0]);
|
|
|
|
buffer_append_slash(b);
|
2005-08-08 08:22:06 +00:00
|
|
|
|
2020-10-09 17:33:54 +00:00
|
|
|
if (!stat_cache_path_isdir(b)) {
|
2020-01-13 02:51:12 +00:00
|
|
|
log_perror(r->conf.errh, __FILE__, __LINE__, "%s", b->ptr);
|
2005-02-20 14:27:00 +00:00
|
|
|
goto ERR500;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* cache the data */
|
2020-01-13 02:51:12 +00:00
|
|
|
buffer_copy_buffer(c->server_name, &r->uri.authority);
|
2019-11-03 15:52:51 +00:00
|
|
|
buffer_copy_buffer(c->document_root, b);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
mysql_free_result(result);
|
2009-07-24 20:26:17 +00:00
|
|
|
#if MYSQL_VERSION_ID >= 40100
|
|
|
|
while (mysql_next_result(p->conf.mysql) == 0);
|
|
|
|
#endif
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
/* fix virtual server and docroot */
|
2014-01-10 12:05:04 +00:00
|
|
|
GO_ON:
|
2020-01-13 02:51:12 +00:00
|
|
|
r->server_name = &r->server_name_buf;
|
|
|
|
buffer_copy_buffer(&r->server_name_buf, c->server_name);
|
|
|
|
buffer_copy_buffer(&r->physical.doc_root, c->document_root);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2006-10-04 13:26:23 +00:00
|
|
|
return HANDLER_GO_ON;
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2014-01-10 12:05:04 +00:00
|
|
|
ERR500:
|
|
|
|
if (result) mysql_free_result(result);
|
2009-07-24 20:26:17 +00:00
|
|
|
#if MYSQL_VERSION_ID >= 40100
|
|
|
|
while (mysql_next_result(p->conf.mysql) == 0);
|
|
|
|
#endif
|
2020-01-13 02:51:12 +00:00
|
|
|
r->http_status = 500; /* Internal Error */
|
|
|
|
r->handler_module = NULL;
|
2005-02-20 14:27:00 +00:00
|
|
|
return HANDLER_FINISHED;
|
|
|
|
}
|
|
|
|
|
2019-11-19 08:39:40 +00:00
|
|
|
|
2009-03-07 21:05:37 +00:00
|
|
|
int mod_mysql_vhost_plugin_init(plugin *p);
|
2005-02-20 14:27:00 +00:00
|
|
|
int mod_mysql_vhost_plugin_init(plugin *p) {
|
2009-07-14 13:15:38 +00:00
|
|
|
p->version = LIGHTTPD_VERSION_ID;
|
2019-10-19 04:30:54 +00:00
|
|
|
p->name = "mysql_vhost";
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2009-07-14 13:15:38 +00:00
|
|
|
p->init = mod_mysql_vhost_init;
|
|
|
|
p->cleanup = mod_mysql_vhost_cleanup;
|
2020-07-25 12:23:58 +00:00
|
|
|
p->handle_request_reset = mod_mysql_vhost_handle_request_reset;
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2009-07-14 13:15:38 +00:00
|
|
|
p->set_defaults = mod_mysql_vhost_set_defaults;
|
|
|
|
p->handle_docroot = mod_mysql_vhost_handle_docroot;
|
2006-10-04 13:26:23 +00:00
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
return 0;
|
|
|
|
}
|