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: |
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 |
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> |
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. |
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 |
Apache
Apache/2.0.40 Server at 192.168.0.3 Port 80
|
still
|
I can see it, it's the apache test page, telling you that it's working ;)
Cool |
Just a stupid question: did you remove the"UserDir disable" line, as mentioned in your httpd.conf ?
|
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 |
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. |
Did you remember to reload apache? I made that mistake a few times, it can drive you crazy! :)
|
I remebered to restart the service, not reload apache... :)
|
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. |
Well rednex, did my addition to your httpd.conf file work?
|
All times are GMT -5. The time now is 12:56 AM. |