On Wed, 7 Dec 2005, Ben Ostrowsky wrote:
> Yarrr... 'tis driving me nuts.
>
> I can't figure out why Apache apparently has permission to show one
> favicon.ico file but not another:
>
> Works fine: http://www2.tblc.org/favicon.ico
> Doesn't work: http://www2.tblc.org/barcodes/favicon.ico
>
> Permissions:
> # ls -l favicon.ico
> -rw-r--r-- 1 apache root 3774 Feb 7 2003 favicon.ico
> # ls -l barcodes/favicon.ico
> -rw-r--r-- 1 apache root 318 Dec 7 09:08 barcodes/favicon.ico
> # ls -l | grep barcodes
> drwxr-xr-x 3 apache root 4096 Dec 7 09:09 barcodes
>
> Log entry:
> [Wed Dec 07 13:10:35 2005] [error] [client 64.128.136.8] (13)Permission
> denied: access to /barcodes/favicon.ico denied
>
> I assume there's something royally weird in my httpd.conf, which is probably
> too long to quote here. What should I be looking for?
Maybe something that prohibits direct access to files in /barcodes?
> (And is there a good way to display an httpd.conf file without comments,
> with sections indented, so that it's easy to see if I've got a structural
> problem?)
grep -v '^[ ]#' httpd.conf | sed 's/^\(.*\)[ ]*#.*$/\1/'
# space --^^-- tab space --^^-- tab
I suppose you can replace the grep command by the sed one, but then you'll
get some mostly-blank lines. That command also assumes apace uses "#" to
start a commment, not ";" or "dnl" or whatever. And you can replace the [ ]
clauses by [[:blank:]] for extra readability/compatibility.
-- -eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactar An ASCII character walks into a bar and orders a double. "Having a bad day?" asks the barman. "Yeah, I have a parity error," replies the ASCII character. The barman says, "Yeah, I thought you looked a bit off." -- Skud----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:17:15 EDT