On Sat, Sep 29 2012, Allan Gottlieb wrote:

> On my new install USERDIR is not working.
>
> When I try http://localhost/~gottlieb, firefox says
>   "you don't have permission to access /~gottlieb"
> and the apache error log says
>   "client denied by server configuration: /local/allan/gottlieb/public_html"
>
> The file permissions are ok since both
>   file:///home/gottlieb/public_html/index.html and
>   file:///home/gottlieb/public_html
> work fine.
>
> So I guess I screwed up the apache install, in particular USERDIR.
>
> eix shows userdir (see below)
>
> /etc/conf.d/apache2 has it (see below, diffs = with my working install)
>
> I have restarted apache, shutdown the machine overnight, reinstalled
> apache, but still no go.
>
> What step did I foolishly miss?
>
> thanks,
> allan

Finally!  I have a filesystem mounted on /local for my local files
including my home directory /local/allan/gottlieb.
I put in a symlink  /home -> /local/allan/gottlieb
so that programs looking in /home would be happy.
I had /etc/passwd say /local/allan/gottlieb since it is the real
directory.

apache doesn't like this.  There is probably an option to let it do this
since it has several options on symlinks

However I simply changed /etc/passwd to say /home/gottlieb and apache
is happy.

allan

Reply via email to