Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] apache server



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
>
>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org