It redefines the document root, so it should only be used if no other mapper wants
the request. I haven't made that change here; I've simply put explict ordering
to make sure we get
mod_alias -> mod_userdir -> mod_vhost_alias
I can't compile apache at the moment for other reasons, so this is untested,
but it looks right to me.
PR: 8853
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96137
13f79535-47bb-0310-9956-
ffa450edef68
static void register_hooks(apr_pool_t *p)
{
- static const char * const aszSucc[]={ "mod_userdir.c", NULL };
+ static const char * const aszSucc[]={ "mod_userdir.c",
+ "mod_vhost_alias.c",NULL };
ap_hook_translate_name(translate_alias_redir,NULL,aszSucc,APR_HOOK_MIDDLE);
ap_hook_fixups(fixup_redir,NULL,NULL,APR_HOOK_MIDDLE);
static void register_hooks(apr_pool_t *p)
{
static const char * const aszPre[]={ "mod_alias.c",NULL };
+ static const char * const aszSucc[]={ "mod_vhost_alias.c",NULL };
- ap_hook_translate_name(translate_userdir,aszPre,NULL,APR_HOOK_MIDDLE);
+ ap_hook_translate_name(translate_userdir,aszPre,aszSucc,APR_HOOK_MIDDLE);
#ifdef HAVE_UNIX_SUEXEC
ap_hook_get_suexec_identity(get_suexec_id_doer,NULL,NULL,APR_HOOK_MIDDLE);
#endif
static void register_hooks(apr_pool_t *p)
{
- ap_hook_translate_name(mva_translate, NULL, NULL, APR_HOOK_MIDDLE);
+ static const char * const aszPre[]={ "mod_alias.c","mod_userdir.c",NULL };
+
+ ap_hook_translate_name(mva_translate, aszPre, NULL, APR_HOOK_MIDDLE);
}
module AP_MODULE_DECLARE_DATA vhost_alias_module =