[Discuss] apache server
Greg Rundlett (freephile)
greg at freephile.com
Tue Dec 9 17:29:08 EST 2014
Apache also has a module (mod_userdir) and related directives for serving
content from user home directories. See
http://httpd.apache.org/docs/current/howto/public_html.html
If you remove the symbolic link 'moylan' and specify (in httpd.conf, or
conf.d/mysite.conf)
UserDir www
Then
sudo a2enmod userdir
sudo apache2ctl reload
you should be able to browse what's in moylan/www by requesting
localhost/~moylan/
Greg Rundlett
http://eQuality-Tech.com
http://freephile.org
On Tue, Dec 9, 2014 at 5:00 PM, Derek Martin <invalid at pizzashack.org> wrote:
> On Tue, Dec 09, 2014 at 04:45:21PM -0500, dan moylan wrote:
> > /var/www/off-lnk.htm (linked to /home/moylan/www/lnk/off.htm -- same
> file)
> > produces the following:
> >
> > Forbidden
> > You don't have permission to access off-lnk.htm on this server.
>
> Most likely explanation is that your home directory, or a path
> component in it, is not readable by the user as which the server runs.
>
> > and ...
> > /var/www/off-lnk-rut.htm (linked to /root/off-lnk-rut.htm -- again, same
> file)
> > produces the following:
> >
> > Not Found
> > The requested URL /off-rut-lnk.htm was not found on this server.
>
> Same problem, more severe permissions restriction. Most likely root's
> home directory is locked down completely (this is the default on most
> distros AFAIK), so the server's user can't see anything inside it.
>
> --
> Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02
> -=-=-=-=-
> This message is posted from an invalid address. Replying to it will
> result in
> undeliverable mail due to spam prevention. Sorry for the inconvenience.
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss
>
>
More information about the Discuss
mailing list