[Discuss] apache server

John Abreau jabr at blu.org
Tue Dec 9 17:47:18 EST 2014


/root is probably chmod'ed 700, so group "apache" cannot follow the link.

Everything in the path /home/moylan/www/link probably has at least the
executable bit set in the third digit of its chmod settings, so apache can
locate the /home/moylan/www/link/off.htm file, but apache doesn't have
permission to read the file.

Of course, this ignores the possibility that selinux is active and is doing
the blocking.

On Tue, Dec 9, 2014 at 4:45 PM, dan moylan <jdm at moylan.us> wrote:

>
> running fc 20 on acer aspire one.
> apache (httpd) running:
>
> /etc/httpd/conf/httpd.conf
> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory, but
> # symbolic links and aliases may be used to point to other locations.
>   DocumentRoot "/var/www/"
>
> however:
>
> root /var/www[688] ls -l
> total 12K
> drwxr-xr-x. 2 root root 4.0K 140723:0631 cgi-bin/
> drwxr-xr-x. 2 root root 4.0K 140913:1522 html/
> lrwxrwxrwx. 1 root root   17 140913:1519 moylan -> /home/moylan/www//
> -rw-r--r--. 1 root root  451 141209:1452 off.htm
> lrwxrwxrwx. 1 root root   28 141209:1431 off-lnk.htm ->
> /home/moylan/www/lnk/off.htm
> lrwxrwxrwx. 1 root root   21 141209:1632 off-lnk-rut.htm ->
> /root/off-lnk-rut.htm
>
> /var/www/off.htm
> displays correctly,
>
> /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.
>
> 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.
>
> what am i missing?
>
> tia,
> ole dan
>
> j. daniel moylan
> 84 harvard ave
> brookline, ma 02446-6202
> 617-777-0207 (cel)
> jdm at moylan.us
> www.moylan.us
> [avoid html waste.]
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss
>



-- 
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0x920063C6
PGP-Key-Fingerprint A5AD 6BE1 FEFE 8E4F 5C23  C2D0 E885 E17C 9200 63C6



More information about the Discuss mailing list