--- apache_1.3b3/src/modules/standard/mod_userdir.c.orig Sun Aug 2 20:32:04 1998 +++ apache_1.3b3/src/modules/standard/mod_userdir.c Sun Aug 2 20:36:48 1998 @@ -296,6 +296,22 @@ /* Need to figure out home dirs on NT */ return DECLINED; #else /* WIN32 */ +#ifdef VIRTUAL_W + struct server_addr_rec *next,*tmp; + char *pwd; + tmp=r->server->addrs; + while((next=tmp)!=NULL) { + if ((pwd=virtual_find_home(&next->host_addr,w))!=NULL) break; + tmp=next->next; + } + if (pwd!=NULL) { +#ifdef __EMX__ + /* Need to manually add user name for OS/2 */ + filename = pstrcat(r->pool, pwd, w, "/", userdir, NULL); +#else + filename = pstrcat(r->pool, pwd, "/", userdir, NULL); +#endif +#else struct passwd *pw; if ((pw = getpwnam(w))) { #ifdef __EMX__ @@ -304,7 +320,9 @@ #else filename = pstrcat(r->pool, pw->pw_dir, "/", userdir, NULL); #endif +#endif /* virtual_w */ } + #endif /* WIN32 */ }