LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Personal Web Space (https://www.linuxquestions.org/questions/linux-software-2/personal-web-space-36887/)

rednex269 11-30-2002 11:12 AM

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!

:newbie:

aliensub 11-30-2002 11:51 AM

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

rednex269 11-30-2002 12:09 PM

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>

aliensub 11-30-2002 01:36 PM

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.

aliensub 11-30-2002 01:39 PM

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

rednex269 11-30-2002 06:12 PM

Apache
 
Apache/2.0.40 Server at 192.168.0.3 Port 80

rednex269 11-30-2002 06:14 PM

still
 
It seems to still not be working...

http://rednex.bounceme.net

Thanks!

MasterC 12-01-2002 01:20 AM

I can see it, it's the apache test page, telling you that it's working ;)

Cool

aliensub 12-01-2002 05:57 AM

Just a stupid question: did you remove the"UserDir disable" line, as mentioned in your httpd.conf ?

rednex269 12-01-2002 10:09 AM

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

aliensub 12-01-2002 04:12 PM

Hmm, I shouldn't answer posts when I just woke up :rolleyes: .

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.

johnraphone 12-02-2002 09:03 PM

Did you remember to reload apache? I made that mistake a few times, it can drive you crazy! :)

rednex269 12-02-2002 09:13 PM

I remebered to restart the service, not reload apache... :)

neo77777 12-02-2002 10:18 PM

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.

aliensub 12-02-2002 10:48 PM

Well rednex, did my addition to your httpd.conf file work?


All times are GMT -5. The time now is 12:56 AM.