Re: Configuration Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Justin,

Thank you very much. That is exactly what I needed to know. I'm glad you answer was more succinct that my question!

Carol
On Sep 17, 2008, at 10:38 AM, Justin Pasher wrote:

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.

http://1.2.3.4/ -> 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...

http://1.2.3.4/~username/ -> 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux