On Fri, Dec 28, 2007 at 04:12:03PM +0000, Chris G wrote:
I've been changing my mind and messing about with this for years and *still* haven't really come to a sensible final conclusion. It's not even that it matters all that much but I wish there was an obvious answer.
Where do you put all your HTML stuff on a home Linux server?
...
Does anyone have any comments, ideas, solutions?
Put it where you want, then configure the webserver to use the appropriate place.
If you want it in your home directory then you can use DocumentRoot to point / of the webserver to a directory under ~
If you don't want to alter the webserver config you can symlink the default docroot into your home directory. Change the permissions on that directory so you can write to it as your normal user.
Put yourself in the www-data group and then you can ensure the webserver can access files even if you want to prevent other users from doing so.
Or use a rewrite/redirect rule if you want to put content under a ~user/ directory and then have the / of the webserver accessing that content.
There are many other options too. I don't think there's a "right" answer. Use what works for you. I tend to take the approach of mostly putting things under ~user/ directories but then my main box is multiuser with the same domain shared by everyone.
J.