Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UserDir and Apache2?
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
drillsar
n00b
n00b


Joined: 08 Sep 2010
Posts: 33

PostPosted: Thu Sep 16, 2010 2:02 pm    Post subject: UserDir and Apache2? Reply with quote

I'm trying to configure using apache2 with USERDIR

I added user to group apache

In /etc/conf.d/apache2

APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D USERDIR -D PHP5"


I have this, I'm trying to figure out now how to use Userdir

I also beleive I need to shut this off for root but im confused on how this is done.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Sep 17, 2010 1:18 pm    Post subject: Reply with quote

Create the appropriate directory in the user's home and you'll be able to put content in there.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Fri Sep 17, 2010 1:51 pm    Post subject: Reply with quote

this only work if the appropriate dir exists...

assumption: the user exists and is called veldrin, and your apache server is located on the localhost.

1. create the folder public_html inside the home directory ( i.e mkdir /home/veldrin/public_html )
2. access it trough ttp://localhost/~veldrin

IIRC if that dir does not exist, userdir does not work.

cheers
V.
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