LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-15-2004, 01:14 AM   #1
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Rep: Reputation: 15
Apache UserDir


I'm wanting shell users to have there own website ie mydomain/~user

I followed the directions at http://httpd.apache.org/docs/mod/mod...r.html#userdir

And my httpd.conf file looks like this



# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#



<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Allow from all
</LimitExcept>
</Directory>

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>



But yet it's not working, what am I doing wrong?
 
Old 09-15-2004, 01:40 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
mmm, i really don't know if this is ok because i don't use it but i have an example on my httpd.conf that looks like:
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
 
Old 09-15-2004, 01:43 AM   #3
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>



Yeah, I have it too. I didn't paste it. It's the same but yet it won't work.
 
Old 09-15-2004, 01:46 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
I'm assuming that you're creating the requerid ~/public_html directory right?

And if you did it, you gave permission to all for reading. all = user, group and others.
 
Old 09-15-2004, 01:48 AM   #5
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Yeah, I did I even have a index.html in there.

And the conf says it's enabled for everyone, it just won't work.
 
Old 09-15-2004, 02:06 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Well, I really don't know what else to do. Try commenting out all the Directory stuff, leaving what i pasted and what u had about index.
 
Old 09-15-2004, 02:11 AM   #7
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
I did
 
Old 09-15-2004, 02:16 AM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
This is weird, i've just tried that in my apache server and worked. The only thing i did besides that was to restart it.
 
Old 09-15-2004, 02:23 AM   #9
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Did you restart the whole machine or just the webserver?

What command did you use?

Cause I've restarted just the webserver
 
Old 09-15-2004, 02:24 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Just the webserver: /etc/rc.d/rc.httpd restart
 
Old 09-15-2004, 02:41 AM   #11
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
That's what I've been doing :/
 
Old 09-15-2004, 06:48 AM   #12
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 32
Re: Apache UserDir

Quote:
Originally posted by Abbaddon
But yet it's not working, what am I doing wrong?
The first thing you're doing wrong is not telling us what error you receive. 'It's not working' isn't very informative.

Secondly, when you say:
Quote:
And the conf says it's enabled for everyone, it just won't work.
it leads me to believe that you misunderstood gbonvehi, when he asked:
Quote:
I'm assuming that you're creating the requerid ~/public_html directory right?

And if you did it, you gave permission to all for reading. all = user, group and others.
This refers to running chmod on the /home/user/public_html directories, so that they are readable by the user 'nobody' (the user that apache runs as).

Enjoy!
--- Cerbere
 
Old 09-15-2004, 11:28 AM   #13
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
chmod 777 public_html


Would that work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache UserDir ]SK[ Linux - Software 4 06-18-2005 12:10 PM
Apache userdir. collen Linux - Networking 1 01-28-2005 12:24 PM
apache userdir 403 darkinsanity429 Linux - Networking 9 01-11-2005 09:19 AM
apache userdir subdomains kodon Linux - Networking 7 08-09-2004 07:16 PM
Question about apache UserDir Gilion Linux - Software 4 10-10-2003 12:28 AM


All times are GMT -5. The time now is 09:24 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration