The default DocumentRoot for apache appears to be /home/httpd. I don't know what the FHS say about this, but I (and I think many other) mount /home as a shared directory, since it is intended for users home directories. This means that if I install apache on multiple machines, it installs over top of other installations. Also, in a shared environment, /home may have root write permissions squashed, which would make it difficult to install apache, squirrelmail, etc. Could this please be moved to /var?
see also the current discussion on gentoo-user this is also important for the net-www/publicfile ebuild - hence i am subscribing my personal opinion is, that i don't care where DocumentRoot is located, as i ususally change it anyways (but then i have it under /var also) what do you think?
I think it should default to /var/www (I think that's RedHat's current default) or /var/httpd, but I don't really care exactly where. I just think that it should be somewhere other than /home. I'm pretty new to gentoo, so I'm still learning what all the standards are, but anywhere under /var is probably reasonable.
sorry to dissappoint you, but im leaving it where it is. before i made the *huge amount of changes to apache, we discussed much of it ad nauseum. this issue was hashed out as well. out of the people that were participating (core developers) it was decided that the Document Root will be in /home/httpd. you dont have to like this, nevertheless, this is what it was decided it will be on Gentoo Linux...
Well, maybe we need to open it to discussion again. Nothing is carved in stone here. My opinion is that we made a mistake by putting it in /home, because this is a definite problem for large sites where /home is nfs-mounted. My vote is to move it into /var.
/home was chosen because it is the "best" place for general purpose, mixed-bag data. /var is for rapidly changing files, and your web docs may or may not be this type of file. The FHS has no root filetree for a general purpose filestore, and we've thought of adding one, but for now /home is the right place for this. It also means that your web docs get backed up if you have a backup script that grabs /home, as many people do. This is really a FHS problem, not our problem. Personally, I'd like to add a /storage or /space or /misc dir to the root of our fs tree.