Apache - how to serve from a directory inside home folder, whereas home folder doesn't has any publi

Posted by Vikrant Chaudhary on Server Fault See other posts from Server Fault or by Vikrant Chaudhary
Published on 2010-03-17T11:10:38Z Indexed on 2010/03/17 11:11 UTC
Read the original article Hit count: 362

Filed under:
|
|
|

Hi,

I'm using Apache2 for completely local development purposes. I'm trying to make DocumentRoot to be /home/vikrant/www/ whereas permissions of /home/vikrant/ are 700.

I'm getting 403 Forbidden when DocumentRoot is /home/vikrant/www/ however It Works! when DocumentRoot is /var/www/.

I've even changed permissions of /home/vikrant/www/ to 777 and changed owner and group to www-data.

Is it possible to serve from home directory whereas home directory doesn't has public permissions? If yes, then how?

© Server Fault or respective owner

Related posts about apache

Related posts about apache2