Click to See Complete Forum and Search --> : Apache + Home DIRs


MetalStorm
03-26-2003, 06:29 PM
hi again people ;)

right, i'm wanting some advice here with accessing my home dirs with apache.
i've got mod_userdir loaded and i've made it look for public_html that's all nice and dandy. but i'd like to have my home dir chmodded with 700 and the public_html dir with 755 ... but when i have that combination i can't access the directory with apache (i get forbidden).
but when i chmod my home dir to 755 i get access.
is there anyway to have a html dir in my home dir, but stil have my home dir with 700?

thanks guys (hope you understood that muddle ;))

:)

MetalStorm
03-27-2003, 01:00 PM
right also, is 755 secure enough for a home dir anyway if that's my only solution?

thanks

nemesiox
03-27-2003, 03:44 PM
This is how I did it. What I was trying to do is to give every user to have their own website to work on.

Instead of using public_html or mod_userdir, I used the virtual host for every user and just point the htdocs to /home/user/public_html.

Example for user joe.

<virtualhosts *>
virtualname joe.example.com
vitualhome /home/joe/public_html
etc.. etc..
</virtualhost>

<keep adding for every user>

Is this what you're trying to do?

MetalStorm
03-27-2003, 07:33 PM
i'm not sure if that would solve my permissions problem but that's a really good idea.
i'm going to try it out!

thanks
:)

MetalStorm
03-27-2003, 07:47 PM
i've just got it sorted. chmod 711 did the trick :)