2 * mod_domaintree.c - Apache2
6 * Copyright 2005 Michael Wallner <mike@iworks.at>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 * DomainTreeEnabled On
23 * DomainTreeMaxdepth 25
24 * DomainTreeStripWWW On
25 * DomainTreePrefix /sites
26 * DomainTreeSuffix /html
28 * DomainTreeAliasRecursion Off
29 * DomainTreeAlias /??/exmaple /com/exmaple
30 * DomainTreeAlias /???/example /com/example
31 * DomainTreeAlias /*one/ /anyone/
32 * DomainTreeIgnore *.foo.com *.foo.co.uk
33 * DomainTreeForbid html.*
34 * <Directory "/sites/.../home">
60 #define MODULE "mod_domaintree"
61 #define AUTHOR "<mike@iworks.at>"
69 #include "apr_tables.h"
70 #include "apr_strings.h"
76 #define APR_WANT_MEMFUNC
77 #define APR_WANT_STRFUNC
81 #include "http_config.h"
82 #include "http_core.h"
84 #include "http_protocol.h"
85 #include "http_request.h"
88 /* {{{ domaintree_module */
90 module AP_MODULE_DECLARE_DATA domaintree_module
;
93 /* {{{ Macros & Types */
95 #ifndef HAVE_UNIX_SUEXEC
97 # define HAVE_UNIX_SUEXEC
104 #define MDT_CNF domaintree_conf
105 #define MDT_PTR (&domaintree_module)
107 #define GET_MDT_CNF(srv) ((MDT_CNF *) ap_get_module_config((srv)->module_config, MDT_PTR))
109 #define IF_SET_ELSE(a, b) (a != -1) ? (a) : (b)
112 #define EMPTY(str) ((str == NULL) || (*(str) == NUL))
114 # define local static
116 # define local static APR_INLINE
119 #define DT_LOG_ERR APLOG_MARK, APLOG_ERR, APR_SUCCESS, DT->server, "DomainTree: "
120 #define DT_LOG_WRN APLOG_MARK, APLOG_WARNING, APR_SUCCESS, DT->server, "DomainTree: "
121 #define DT_LOG_DBG APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, DT->server, "DomainTree: "
127 apr_table_t
*faketable
;
141 apr_global_mutex_t
*lock
;
144 typedef apr_array_header_t
*hostlist_t
;
158 #ifdef HAVE_UNIX_SUEXEC
166 local
char *domaintree_cache_get(MDT_CNF
*DT
, apr_time_t atime
, const char *host
)
169 dircache_entry_t
*cache_entry
;
171 apr_global_mutex_lock(DT
->dircache
.lock
);
173 if ((cache_entry
= apr_hash_get(DT
->dircache
.hmap
, host
, APR_HASH_KEY_STRING
))) {
174 cache_entry
->lacc
= atime
;
175 path
= cache_entry
->path
;
178 apr_global_mutex_unlock(DT
->dircache
.lock
);
181 ap_log_error(DT_LOG_DBG
"cache hit = %s for %s", path
, host
);
187 local
void domaintree_cache_set(MDT_CNF
*DT
, apr_time_t atime
, const char *host
, const char *path
)
190 dircache_entry_t
*cache_entry
;
192 apr_pool_create(&pool
, DT
->dircache
.pool
);
193 cache_entry
= apr_palloc(pool
, sizeof(dircache_entry_t
));
195 cache_entry
->pool
= pool
;
196 cache_entry
->lacc
= atime
;
197 cache_entry
->host
= apr_pstrdup(pool
, host
);
198 cache_entry
->path
= apr_pstrdup(pool
, path
);
200 apr_global_mutex_lock(DT
->dircache
.lock
);
202 if (apr_hash_count(DT
->dircache
.hmap
) >= DT
->dircache
.clim
) {
203 apr_hash_index_t
*idx
;
204 dircache_entry_t
*purge_this
= NULL
;
206 ap_log_error(DT_LOG_WRN
"reached cache limit (%ld)", DT
->dircache
.clim
);
208 for (idx
= apr_hash_first(DT
->dircache
.pool
, DT
->dircache
.hmap
); idx
; idx
= apr_hash_next(idx
)) {
209 dircache_entry_t
*current
;
211 apr_hash_this(idx
, NULL
, NULL
, (void *) ¤t
);
212 if ((!purge_this
) || (purge_this
->lacc
> current
->lacc
)) {
213 purge_this
= current
;
218 ap_log_error(DT_LOG_DBG
"cache del = %s", purge_this
->host
);
219 apr_hash_set(DT
->dircache
.hmap
, purge_this
->host
, APR_HASH_KEY_STRING
, NULL
);
220 apr_pool_destroy(purge_this
->pool
);
223 apr_hash_set(DT
->dircache
.hmap
, cache_entry
->host
, APR_HASH_KEY_STRING
, cache_entry
);
225 apr_global_mutex_unlock(DT
->dircache
.lock
);
227 ap_log_error(DT_LOG_DBG
"cache set = %s for %s", path
, host
);
233 local
char *strtr(char *string
, char from
, char to
)
238 while ((ptr
= strchr(ptr
, from
))) {
247 #define TRIM_BOTH (TRIM_LEFT|TRIM_RIGHT)
248 local
char *trim(char *string
, size_t length
, char what
, int where
)
250 if (where
& TRIM_RIGHT
) {
251 while (length
-- && (string
[length
] == what
)) {
252 string
[length
] = NUL
;
255 if (where
& TRIM_LEFT
) {
256 while (*string
== what
) {
263 local
int strmatch(const char *match
, const char *string
, const char **begin
, const char **end
)
265 *begin
= *end
= NULL
;
267 while (*match
&& *string
)
272 while (*match
== '*' || *match
== '?') {
281 *end
= string
+ strlen(string
);
285 if (!(string
= strchr(string
, *match
))) {
300 if (*match
== *string
) {
320 local
char *struniqchr(char *string
, char uniq
)
325 if (ptr
[0] == uniq
&& ptr
[1] == uniq
) {
328 for (; pos
[1] == uniq
; ++pos
);
329 for (; pos
[0]; ++pos
) {
339 local
char *domaintree_host(apr_pool_t
*pool
, MDT_CNF
*DT
, const char *host_name
)
344 if (EMPTY(host_name
)) {
345 ap_log_error(DT_LOG_WRN
"no host/server name");
350 host
= apr_pstrdup(pool
, host_name
);
352 /* check for :NN port */
353 if ((port
= strchr(host
, ':'))) {
360 /* strip leading & trailing dots */
361 host
= trim(host
, len
, '.', TRIM_BOTH
);
363 ap_log_error(DT_LOG_DBG
"host name = %s for %s", host
, host_name
);
368 local
char *domaintree_path(apr_pool_t
*pool
, MDT_CNF
*DT
, const char *host_name
)
370 long depth
= 0, maxdepth
= IF_SET_ELSE(DT
->maxdepth
, 20);
371 const char *host
= host_name
;
372 char *path
= NULL
, *host_ptr
;
374 while ((host_ptr
= strchr(host
, '.'))) {
376 /* check max depth */
377 if (++depth
> maxdepth
) {
378 ap_log_error(DT_LOG_ERR
"maxdepth exceeded (%ld)", maxdepth
);
383 if (host_ptr
- host
) {
386 if ((DT
->stripwww
> 0) && (depth
== 1) && (!strncmp(host
, "www.", sizeof("www")))) {
387 ap_log_error(DT_LOG_DBG
"strip www");
389 path
= apr_pstrcat(pool
, apr_pstrndup(pool
, host
, host_ptr
- host
), "/", path
, NULL
);
396 /* append last part if any and duplicate full path */
398 path
= apr_pstrcat(pool
, host
, "/", path
, NULL
);
401 ap_log_error(DT_LOG_DBG
"path name = %s for %s", path
, host_name
);
406 local
void domaintree_fake(apr_pool_t
*pool
, MDT_CNF
*DT
, char **path
)
410 apr_pool_t
*local_pool
;
411 const apr_array_header_t
*header
= apr_table_elts(DT
->aliases
.faketable
);
412 apr_table_entry_t
*array
= (apr_table_entry_t
*) header
->elts
;
414 if (APR_SUCCESS
!= apr_pool_create(&local_pool
, pool
)) {
421 if (recurlevel
++ > DT
->aliases
.recursion
) {
422 ap_log_error(DT_LOG_ERR
"maximum alias recursion level (%ld) exceeded! Check if you have recursive definitions of DomainTreeAlias directives.", DT
->aliases
.recursion
);
426 for (i
= 0; i
< header
->nelts
; ++i
) {
427 const char *begin
, *end
;
429 ap_log_error(DT_LOG_DBG
"fake test = %s on %s", array
[i
].key
, *path
);
430 if (strmatch(array
[i
].key
, *path
, &begin
, &end
)) {
431 ap_log_error(DT_LOG_DBG
"fake done = %s (%s <> %s)", *path
, array
[i
].key
, array
[i
].val
);
432 *path
= apr_pstrcat(local_pool
, "/", apr_pstrndup(local_pool
, *path
, begin
- *path
), "/", array
[i
].val
, "/", end
, NULL
);
436 } while (more
&& (DT
->aliases
.recursion
> 0));
438 *path
= apr_pstrdup(pool
, struniqchr(*path
, '/'));
440 apr_pool_destroy(local_pool
);
443 #define TEST_IS_BOS 1
444 #define TEST_IS_EOS 2
445 #define TEST_IS_AOS 3
446 local
int domaintree_test(MDT_CNF
*DT
, const char *host
, int argc
, const char **argv
, int flags
, const char **bos
, const char **eos
)
450 const char *begin
, *end
, *host_end
= host
+ strlen(host
);
452 for (i
= 0; i
< argc
; ++i
) {
453 ap_log_error(DT_LOG_DBG
"host test = %s <> %s", argv
[i
], host
);
454 if (strmatch(argv
[i
], host
, &begin
, &end
)) {
455 if ((flags
& TEST_IS_BOS
) && begin
!= host
) {
458 if ((flags
& TEST_IS_EOS
) && end
!= host_end
) {
467 ap_log_error(DT_LOG_DBG
"test done = %s by %s", host
, argv
[i
]);
478 static STATUS
domaintree_hook_post_config(apr_pool_t
*pconf
, apr_pool_t
*plog
, apr_pool_t
*ptemp
, server_rec
*s
)
480 ap_add_version_component(pconf
, "MDT/" VERSION
);
484 static STATUS
domaintree_hook_translate_name(request_rec
*r
)
487 char *host
, *path
, *docroot
;
489 if ((!(DT
= GET_MDT_CNF(r
->server
))) || (DT
->enabled
< 1)) {
494 ap_log_error(DT_LOG_DBG
"processid = %d", (int) getpid());
497 /* get a usable host name */
498 if (!(host
= domaintree_host(r
->pool
, DT
, ap_get_server_name(r
)))) {
503 if (domaintree_test(DT
, host
, DT
->ignore
->nelts
, (const char **) DT
->ignore
->elts
, TEST_IS_AOS
, NULL
, NULL
)) {
508 if (domaintree_test(DT
, host
, DT
->forbid
->nelts
, (const char **) DT
->forbid
->elts
, TEST_IS_AOS
, NULL
, NULL
)) {
509 return HTTP_FORBIDDEN
;
513 if ((DT
->dircache
.clim
< 1) || (!(path
= domaintree_cache_get(DT
, r
->request_time
, host
)))) {
515 if (!(path
= domaintree_path(r
->pool
, DT
, host
))) {
519 /* apply any aliases */
520 if (apr_table_elts(DT
->aliases
.faketable
)->nelts
) {
521 domaintree_fake(r
->pool
, DT
, &path
);
525 if (DT
->dircache
.clim
> 0) {
526 domaintree_cache_set(DT
, r
->request_time
, host
, path
);
530 /* compose virtual docroot */
531 docroot
= struniqchr(apr_pstrcat(r
->pool
, DT
->prefix
, "/", path
, "/", DT
->suffix
, "/", NULL
), '/');
534 if (DT
->statroot
> 0) {
537 switch (apr_stat(&sb
, docroot
, APR_FINFO_MIN
, r
->pool
)) {
540 ap_log_error(DT_LOG_DBG
"stat path = %s (success)", docroot
);
544 ap_log_error(DT_LOG_DBG
"stat path = %s (failure)", docroot
);
549 /* set virtual docroot */
550 apr_table_set(r
->subprocess_env
, "VIRTUAL_DOCUMENT_ROOT", docroot
);
552 #ifdef HAVE_UNIX_SUEXEC
553 /* set suexec note */
555 const char *username
, *separator
;
557 if (domaintree_test(DT
, docroot
, DT
->suexec
->nelts
, DT
->suexec
->elts
, TEST_IS_BOS
, NULL
, &username
)) {
558 if ((separator
= strchr(username
, '/'))) {
559 username
= apr_pstrndup(r
->pool
, username
, separator
-username
);
561 username
= apr_pstrdup(r
->pool
, username
);
563 apr_table_setn(r
->notes
, "mod_domaintree.suexec", username
);
569 r
->canonical_filename
= "";
570 r
->filename
= apr_pstrcat(r
->pool
, docroot
, EMPTY(r
->uri
) ? NULL
: ('/' == *r
->uri
? r
->uri
+ 1 : r
->uri
), NULL
);
572 ap_log_error(DT_LOG_DBG
"path done = %s", r
->filename
);
577 #ifdef HAVE_UNIX_SUEXEC
578 static STATUS
domaintree_hook_get_suexec_identity(const request_rec
*r
)
580 ap_unix_identity_t
*ugid
= NULL
;
582 const char *username
;
584 if ((username
= apr_table_get(r
->notes
, "mod_domaintree.suexec"))) {
585 if ((ugid
= apr_palloc(r
->pool
, sizeof(*ugid
)))) {
586 if (APR_SUCCESS
== apr_uid_get(&ugid
->uid
, &ugid
->gid
, username
, r
->pool
)) {
596 static void domaintree_hooks(apr_pool_t
*pool
)
598 static const char * const pre
[] = {"mod_alias.c", "mod_userdir.c", NULL
};
600 ap_hook_post_config(domaintree_hook_post_config
, NULL
, NULL
, APR_HOOK_MIDDLE
);
601 ap_hook_translate_name(domaintree_hook_translate_name
, pre
, NULL
, APR_HOOK_FIRST
);
602 #ifdef HAVE_UNIX_SUEXEC
603 ap_hook_get_suexec_identity(domaintree_hook_get_suexec_identity
, NULL
, NULL
, APR_HOOK_FIRST
);
608 /* {{{ Configuration */
610 static void *domaintree_create_srv(apr_pool_t
*p
, server_rec
*s
)
612 MDT_CNF
*DT
= (MDT_CNF
*) apr_palloc(p
, sizeof(MDT_CNF
));
620 DT
->prefix
= "/var/www";
621 DT
->suffix
= "public_html";
623 DT
->ignore
= apr_array_make(p
, 0, sizeof(char *));
624 DT
->forbid
= apr_array_make(p
, 0, sizeof(char *));
625 #ifdef HAVE_UNIX_SUEXEC
626 DT
->suexec
= apr_array_make(p
, 0, sizeof(char *));
629 DT
->aliases
.recursion
= -1;
630 DT
->aliases
.faketable
= apr_table_make(p
, 0);
632 DT
->dircache
.clim
= -1;
633 DT
->dircache
.hmap
= apr_hash_make(p
);
634 apr_pool_create(&DT
->dircache
.pool
, p
);
635 apr_global_mutex_create(&DT
->dircache
.lock
, __FILE__
, APR_LOCK_DEFAULT
, p
);
637 fprintf(stderr
, "MDT: cfg create %p\n", DT
);
642 static void *domaintree_merge_srv(apr_pool_t
*p
, void *old_cfg_ptr
, void *new_cfg_ptr
)
644 MDT_CNF
*old_cfg
= (MDT_CNF
*) old_cfg_ptr
, *new_cfg
= (MDT_CNF
*) new_cfg_ptr
;
645 MDT_CNF
*DT
= (MDT_CNF
*) apr_palloc(p
, sizeof(MDT_CNF
));
647 DT
->server
= new_cfg
->server
;
648 DT
->enabled
= IF_SET_ELSE(new_cfg
->enabled
, old_cfg
->enabled
);
649 DT
->stripwww
= IF_SET_ELSE(new_cfg
->stripwww
, old_cfg
->stripwww
);
650 DT
->statroot
= IF_SET_ELSE(new_cfg
->statroot
, old_cfg
->statroot
);
651 DT
->maxdepth
= IF_SET_ELSE(new_cfg
->maxdepth
, old_cfg
->maxdepth
);
653 DT
->prefix
= EMPTY(new_cfg
->prefix
) ? EMPTY(old_cfg
->prefix
) ? "/var/www" : old_cfg
->prefix
: new_cfg
->prefix
;
654 DT
->suffix
= EMPTY(new_cfg
->suffix
) ? EMPTY(old_cfg
->suffix
) ? "public_html" : old_cfg
->suffix
: new_cfg
->suffix
;
656 DT
->ignore
= apr_array_append(p
, new_cfg
->ignore
, old_cfg
->ignore
);
657 DT
->forbid
= apr_array_append(p
, new_cfg
->forbid
, old_cfg
->forbid
);
658 #ifdef HAVE_UNIX_SUEXEC
659 DT
->suexec
= apr_array_append(p
, new_cfg
->suexec
, old_cfg
->suexec
);
662 DT
->aliases
.recursion
= IF_SET_ELSE(new_cfg
->aliases
.recursion
, old_cfg
->aliases
.recursion
);
663 DT
->aliases
.faketable
= apr_table_overlay(p
, new_cfg
->aliases
.faketable
, old_cfg
->aliases
.faketable
);
665 DT
->dircache
.clim
= IF_SET_ELSE(new_cfg
->dircache
.clim
, old_cfg
->dircache
.clim
);
666 DT
->dircache
.hmap
= apr_hash_overlay(p
, new_cfg
->dircache
.hmap
, old_cfg
->dircache
.hmap
);
667 apr_global_mutex_create(&new_cfg
->dircache
.lock
, __FILE__
, APR_LOCK_DEFAULT
, p
);
669 fprintf(stderr
, "MDT: cfg merge %p + %p = %p\n", old_cfg
, new_cfg
, DT
);
674 static const char *domaintree_init_enable(cmd_parms
*cmd
, void *conf
, int flag
)
676 GET_MDT_CNF(cmd
->server
)->enabled
= flag
;
680 static const char *domaintree_init_stripwww(cmd_parms
*cmd
, void *conf
, int flag
)
682 GET_MDT_CNF(cmd
->server
)->stripwww
= flag
;
686 static const char *domaintree_init_statroot(cmd_parms
*cmd
, void *conf
, int flag
)
688 GET_MDT_CNF(cmd
->server
)->statroot
= flag
;
692 static const char *domaintree_init_prefix(cmd_parms
*cmd
, void *conf
, const char *prefix
)
694 GET_MDT_CNF(cmd
->server
)->prefix
= EMPTY(prefix
) ? "/" : trim(apr_pstrdup(cmd
->pool
, prefix
), strlen(prefix
), '/', TRIM_RIGHT
);
698 static const char *domaintree_init_suffix(cmd_parms
*cmd
, void *conf
, const char *suffix
)
700 GET_MDT_CNF(cmd
->server
)->suffix
= EMPTY(suffix
) ? "" : trim(apr_pstrdup(cmd
->pool
, suffix
), strlen(suffix
), '/', TRIM_BOTH
);
704 static const char *domaintree_init_maxdepth(cmd_parms
*cmd
, void *conf
, const char *max_depth
)
708 if ((depth
= atol(max_depth
))) {
710 GET_MDT_CNF(cmd
->server
)->maxdepth
= depth
;
712 return "Maximum DomainTree depth cannot be negative.";
719 static const char *domaintree_init_aliasrecursion(cmd_parms
*cmd
, void *conf
, const char *alias_recursion
)
723 if ((recursion
= atol(alias_recursion
))) {
724 if (recursion
>= 0L) {
725 GET_MDT_CNF(cmd
->server
)->aliases
.recursion
= recursion
;
727 return "DomainTree alias recursion cannot be negative.";
734 static const char *domaintree_init_alias(cmd_parms
*cmd
, void *conf
, const char *fake
, const char *real
)
736 char *f
= strtr(apr_pstrdup(cmd
->pool
, fake
), '.', '/'), *r
= strtr(apr_pstrdup(cmd
->pool
, real
), '.', '/');
738 apr_table_set(GET_MDT_CNF(cmd
->server
)->aliases
.faketable
, trim(f
, strlen(f
), '/', TRIM_BOTH
), trim(r
, strlen(r
), '/', TRIM_BOTH
));
743 static const char *domaintree_init_cache(cmd_parms
*cmd
, void *conf
, const char *cache
)
747 if ((limit
= atol(cache
))) {
749 GET_MDT_CNF(cmd
->server
)->dircache
.clim
= limit
;
751 return "DomainTree cache limit cannot be negative.";
758 static const char *domaintree_init_ignore(cmd_parms
*cmd
, void *conf
, const char *ignore
)
760 *((char **) apr_array_push(GET_MDT_CNF(cmd
->server
)->ignore
)) = trim(apr_pstrdup(cmd
->pool
, ignore
), strlen(ignore
), '.', TRIM_BOTH
);
764 static const char *domaintree_init_forbid(cmd_parms
*cmd
, void *conf
, const char *forbid
)
766 *((char **) apr_array_push(GET_MDT_CNF(cmd
->server
)->forbid
)) = trim(apr_pstrdup(cmd
->pool
, forbid
), strlen(forbid
), '.', TRIM_BOTH
);
770 static const char *domaintree_init_suexec(cmd_parms
*cmd
, void *conf
)
772 #ifdef HAVE_UNIX_SUEXEC
776 return "DomainTreeSuexec is a per directory configuration directive";
779 switch (apr_stat(&sb
, cmd
->path
, APR_FINFO_MIN
, cmd
->pool
)) {
784 return "DomainTreeSuexec must be defined for an existing path";
787 *((char **) apr_array_push(GET_MDT_CNF(cmd
->server
)->suexec
)) = trim(apr_pstrdup(cmd
->pool
, cmd
->path
), strlen(cmd
->path
), '.', TRIM_BOTH
);
791 return "HAVE_UNIX_SUEXEC was undefined at compile time";
798 static command_rec domaintree_commands
[] = {
800 "DomainTreeEnabled", domaintree_init_enable
, NULL
, RSRC_CONF
,
801 "Turn the module on or off."
805 "DomainTreeStripWWW", domaintree_init_stripwww
, NULL
, RSRC_CONF
,
806 "Strip leading www from host. (default On)"
810 "DomainTreeStatRoot", domaintree_init_statroot
, NULL
, RSRC_CONF
,
811 "Wheter to check for the evaluated virtual document root with a stat call. (default Off)"
815 "DomainTreePrefix", domaintree_init_prefix
, NULL
, RSRC_CONF
,
816 "DomainTree path prefix. (default /var/www) Do not forget the leading slash!"
820 "DomainTreeSuffix", domaintree_init_suffix
, NULL
, RSRC_CONF
,
821 "DomainTree path suffix. (default public_html)"
825 "DomainTreeMaxdepth", domaintree_init_maxdepth
, NULL
, RSRC_CONF
,
826 "DomainTree max path depth. (default 20)"
830 "DomainTreeAliasRecursion", domaintree_init_aliasrecursion
, NULL
, RSRC_CONF
,
831 "Whether (and how often at the maximum) DomainTree should walk recursively "
832 "through the aliases list as long as matching aliases are found. (default: 0 = turned off)"
836 "DomainTreeAlias", domaintree_init_alias
, NULL
, RSRC_CONF
,
837 "DomainTree aliases; e.g. DomainTreeAlias com/example/tickets com/example/support (dots or slashes equal)"
841 "DomainTreeCache", domaintree_init_cache
, NULL
, RSRC_CONF
,
842 "DomainTree server-wide host to directory cache; specify how many cache entries to allow (default: 0 = turned off)"
846 "DomainTreeIgnore", domaintree_init_ignore
, NULL
, RSRC_CONF
,
847 "DomainTree ignored hosts; uses the same matching alogrithm like DomainTreeAlias"
851 "DomainTreeForbid", domaintree_init_forbid
, NULL
, RSRC_CONF
,
852 "DomanTree forbidden hosts; uses the same matching algorithm like DomainTreeAlias"
856 "DomainTreeSuexec", domaintree_init_suexec
, NULL
, ACCESS_CONF
,
857 "DomainTree user home directory; enable suexec hook for domain based user-dir hosting in this directory"
864 /* {{{ Module Administrativa */
866 module AP_MODULE_DECLARE_DATA domaintree_module
= {
867 STANDARD20_MODULE_STUFF
,
868 NULL
, /* create per-dir */
869 NULL
, /* merge per-dir */
870 domaintree_create_srv
, /* create per-server */
871 domaintree_merge_srv
, /* merge per-server */
872 domaintree_commands
, /* config commands */
873 domaintree_hooks
/* hooks */
883 * vim600: noet sw=4 ts=4 fdm=marker
884 * vim<600: noet sw=4 ts=4