httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Moreira <lamore...@bes.pt>
Subject Re: [users@httpd] Location of USERDIR on Windows 2000 etc?
Date Wed, 13 Aug 2003 12:39:20 GMT
On HTTPD.CONF you will find

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
# Under Win32, we do not currently try to determine the home directory of
# a Windows login, so a format such as that below needs to be used.  See
# the UserDir documentation for details.
#
<IfModule mod_userdir.c>
   UserDir "d:/program files/Apache Group/Apache/users/"
</IfModule>

If you type http://x.x.x.x/~rachael you will be trying to access a directory
named RACHAEL under the first directory.
Edit that and you should be fine

Luis

----- Original Message -----
From: "Rachael Padman" <rp10001@cam.ac.uk>
To: <users@httpd.apache.org>
Sent: Wednesday, August 13, 2003 12:20 PM
Subject: [users@httpd] Location of USERDIR on Windows 2000 etc?


> Apache2.0.47 (Win32) PHP4.3.2
>
> Could someone please explain what Apache assumes as a user's home
> directory?
>
> I have a user (me) where the "My Documents" folder has been moved to a
> similarly-named tree on another drive (to save time when logging on and
> off). The home directory has been set to the new location. An inquiry to
> Windows shows the following environment variables to be set.
>
> HOMEDRIVE=d:
> HOMEPATH=\Documents and Settings\rachael
>
> I had hoped to serve web pages from this location, using the ~username
> convention. However, on trying to access .../~rachael I get 404'd with
> the following log entries.
>
> Access Log:
> 131.111.48.201 - - [13/Aug/2003:12:06:55 +0100] "GET /~Rachael HTTP/1.1"
> 404 305
>
> Error Log:
> [Wed Aug 13 12:06:56 2003] [error] [client 131.111.48.201] File does not
> exist: C:/Documents and Settings/rachael/My Documents/My Webs
>
> So it looks as though the "home directory" used by Apache is the profile
> directory, rather than what Windows thinks of as the home directory. Is
> this correct? And is there any way to alter this behaviour?
>
> Thanks in advance
> ____________________________________________
> Rachael Padman
> University of Cambridge Dep't of Physics
> Cavendish Laboratory, Madingley Rd, Cambridge CB3 0HE
> Tel:  +44(1223)337310   Fax: +44(1223)354599
> Email: rp10001@cam.ac.uk
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message