LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2002, 11:12 AM   #1
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Rep: Reputation: 0
Personal Web Space


I am looking to allow users on my Redhat 8.0 machine host their own pictures/html... (Usin Apache 2)

for example http://genericdomain.net/~nunya

I orginally made a public_html directory within the users home directory and make sure the dir and html had read/exec permissions...

mkdir /home/nunya/public_html

/home/nunya/public_html/index.html

When attempting to look at the dir I get error 404

HELP!

 
Old 11-30-2002, 11:51 AM   #2
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
In your /etc/httpd/commonhttpd.conf , do you have this line:

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

And in in /etc/httpd/httpd.conf you should have this module loaded:

LoadModule userdir_module modules/mod_userdir.so
 
Old 11-30-2002, 12:09 PM   #3
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
Did I do this correctly??

I do not have a /etc/httpd/commonhttpd.conf

However, I do have /etc/httpd/conf/httpd.conf

--------------------------------------

pico /etc/httpd/conf/httpd.conf

<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#



#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html

</IfModule>
 
Old 11-30-2002, 01:36 PM   #4
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
Sorry, your path is right it's just me being lazy

And I can see you found the answer in the file, RH apparently disable this by default.
 
Old 11-30-2002, 01:39 PM   #5
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
As far as i remember, in the newest version of apache, they have split httpd.conf in 2 files:
A httpd.conf with rarely touch parameters for the server
A commonhttpd.conf for the stuff you normally have to change to your settings.

So if you have a little older apache you only have httpd.conf
 
Old 11-30-2002, 06:12 PM   #6
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
Apache

Apache/2.0.40 Server at 192.168.0.3 Port 80
 
Old 11-30-2002, 06:14 PM   #7
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
still

It seems to still not be working...

http://rednex.bounceme.net

Thanks!
 
Old 12-01-2002, 01:20 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I can see it, it's the apache test page, telling you that it's working

Cool
 
Old 12-01-2002, 05:57 AM   #9
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
Just a stupid question: did you remove the"UserDir disable" line, as mentioned in your httpd.conf ?
 
Old 12-01-2002, 10:09 AM   #10
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
Well good and bad... the user directories do not show up.. for example... http://rednex.bounceme.net/~jsevy I have the permissions at 777 for both the DIR and the index.html

I would be happy to upload you or email you the httpd.conf I am currently using...

And to answer the questoin about UserDir - Yeah... I put a snippet of the file in the message above so you could verify..

JS
 
Old 12-01-2002, 04:12 PM   #11
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
Hmm, I shouldn't answer posts when I just woke up .

If you wan't you can email me the httpd.conf to danny@aliensub.dk .

If I find the solution I will post it here, for others to knows.
 
Old 12-02-2002, 09:03 PM   #12
johnraphone
LQ Newbie
 
Registered: Jul 2002
Distribution: Redhat
Posts: 6

Rep: Reputation: 0
Did you remember to reload apache? I made that mistake a few times, it can drive you crazy!
 
Old 12-02-2002, 09:13 PM   #13
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
I remebered to restart the service, not reload apache...
 
Old 12-02-2002, 10:18 PM   #14
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Take a look at yolinux tutorials http://www.yolinux.com/TUTORIALS/Lin...fig.html#HTTPD
even though it is for apache 1.3.x you can make an anology if the configuration differs a bit.
 
Old 12-02-2002, 10:48 PM   #15
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
Well rednex, did my addition to your httpd.conf file work?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Personal web server for testing web sites? Ariod Linux - Newbie 12 09-29-2005 04:30 PM
Mambo and personal web page: Apache? Lead Expression Linux - Newbie 2 09-19-2005 02:46 PM
Web Server and Personal Workstation dethstar Linux - Newbie 2 08-02-2005 01:47 AM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
personal web server tuxrules Linux - Newbie 3 06-23-2004 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration