Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setting up /~username on Apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
davidd
n00b
n00b


Joined: 20 May 2003
Posts: 6

PostPosted: Sat May 31, 2003 6:25 am    Post subject: setting up /~username on Apache Reply with quote

I would like to be able to
have my webserver direct people to a folder in their home dir.

/home/username/public_html. when you enter www.domain.com/~username

thisway the users on my machine can have remote access to the files they want easily.



I would also like username.domain.com to take them to the same folder..

I know this can be done somehow in vhosts but i've played around and cant get it working. I think i can get the username.domain.com to work with some more effort.

But would like some instructions on how to setup /~username
I dont know quite where to start..
Back to top
View user's profile Send private message
compu-tom
Guru
Guru


Joined: 09 Jan 2003
Posts: 415
Location: Berlin, Germany

PostPosted: Sat May 31, 2003 7:21 am    Post subject: Re: setting up /~username on Apache Reply with quote

davidd wrote:
/home/username/public_html. when you enter www.domain.com/~username

This is already enabled in the /etc/apache/conf/commonapache.conf:
Code:
<Directory /home/*/public_html>
    AllowOverride All
    Options MultiViews -Indexes Includes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

If it doesn't work for you, check the permissions of the directories and files you want to access. You need
- at least "rx" permissions for "others" for public_html and dirs below ("r" only if you want to have dir listing in absence of an index.html),
- at least "x" for "others" for all dirs to / (e.g., for /, /home, /home/username),
- and "r" for all files under public_html which you want to access.
This is because the user apache is not the owner of the user's files and apache's group is probably not "users" but "apache".

To trace errors look in /var/log/apache/{access,error}_log.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum