how to get user home dir available through apache

Derek Broughton news at pointerstop.ca
Mon Mar 31 13:31:33 UTC 2008


Ian Harrell wrote:

Please don't top-post.  It makes it hard to have a conversation.

>> I want to setup my ubuntu server so i can make
>> http://my.ip.address/~username/
>> work.
>> 
>> I want the users be able to access their own home dir via http.
>> they need to be able to login using their username.

> You will need to enable the userdir-mod in apache2. I use webmin to
> configure and control my servers on ubuntu 7.10 server edition. If you
> have it just go into the apache webserver module --> global configuration
> --> configure apache modules and then check the check box beside userdir
> and click enable selected modules.

iirc, that makes http://server/~user/ point to /home/user/public_html/
- which is where the OP should really leave it.  I don't think it's a very
smart idea to expose the user's HOME directory - let users choose what they
want exposed on the website.

I leave "logging on" as an exercise to the user (meaning I don't actually
know how to do that... :-) )

If you really want users to just be able to access their files from the web,
use sftp.
-- 
derek





More information about the ubuntu-users mailing list