httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Pasher <>
Subject Re: [users@httpd] Configuration Question
Date Wed, 17 Sep 2008 14:38:14 GMT
Carol Walter wrote:
> I am talking about the document root.  I'm sorry it was unclear.  I'm 
> a newby.  =)  I guess my real question is, does it have to be a user 
> in /home/username on a Unix system?  I'll have only one user - the app 
> user.
> Carol

If you are talking about the global DocumentRoot setting in the Apache 
config, then that directory can be anything you want it to be. Usually 
people have it set to something like /var/www, but the default depends 
on your distribution. After setting the DocumentRoot accordingly, you 
can put files in that directory and they will be accessible when you 
access the server via IP address or domain name that points to that IP 
address.     -> pulls from ->     /var/www  (DocumentRoot directive)

If you want people to be able to host files in their home directory, 
this is where the UserDir directive comes into play. This is most 
commonly set to public_html. The files will be pulled like so...     -> pulls from ->     
/home/username/public_html  (UserDir directive)

Justin Pasher

> On Sep 16, 2008, at 12:50 PM, Justin Pasher wrote:
>> Carol Walter wrote:
>>> Hello,
>>> I'm having a configuration issue.  I want to put a directory called 
>>> "www" under a project directory.  The "www" directory is where the 
>>> php code will go.  I've found the UserDir directive that will allow 
>>> creating that under /home/username, but I haven't found one like the 
>>> one I want.  Is there a directive for this?
>>> Thank you,
>> Your question is a little unclear. Do you want the "www" directory to 
>> be treated as the user's document root (such that 
>> http://hostname/~username/ points to the www directory)? If so, then 
>> you simply need to set the UserDir directive accordingly based upon 
>> your home directory structure. Otherwise, please explain what you are 
>> trying to do a little more.
>> -- 
>> Justin Pasher

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message