Bug 115945

Summary: [WWW server] missing url.access-deny: .inc does not work.
Product: Documentation Reporter: chinsan <chinsan>
Component: Books & ArticlesAssignee: Wolfram Schneider <wosch>
Status: Closed FIXED    
Severity: Affects Only Me CC: wosch
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description chinsan freebsd_committer freebsd_triage 2007-08-30 15:50:11 UTC
  lighttpd doest not include .inc file type as the default mimetypes.
  Therefore, it will return 403(Forbidden) error.

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/Makefile.inc

Fix: 

Add the following line into lighttpd.conf:

    ".inc"          =>      "text/plain",

  Finally, restart lighttpd.
How-To-Repeat:   Try
  http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/Makefile.inc
  http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/xdr/Makefile.inc
  or anything else which end with ".inc".
Comment 1 chinsan 2007-08-30 16:01:40 UTC
On 8/30/07, chinsan <chinsan@freebsd.org> wrote:
>
> >Number:         115945
> >Category:       www
> >Synopsis:       [WWW server] missing mimetype: .inc does not work.
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-www
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Thu Aug 30 14:50:11 GMT 2007
> >Closed-Date:
> >Last-Modified:
> >Originator:     chinsan
> >Release:        FreeBSD 6.2-STABLE i386
> >Organization:
> Taiwan
> >Environment:
> System: FreeBSD blog.homiya.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed Jul 25 09:11:00 CST 2007 root@blog.homiya.com:/usr/obj/usr/src/sys/SMP i386
>
> >Description:
>   lighttpd doest not include .inc file type as the default mimetypes.
>   Therefore, it will return 403(Forbidden) error.

Oh.. I found what really matters: url.access-deny instead of mime type.


> >Fix:

Remove .inc from lighttpd.conf, ie:
-url.access-deny             = ( "~", ".inc" )
+url.access-deny             = ( "~" )
Comment 2 Daniel Gerzo freebsd_committer freebsd_triage 2007-08-30 16:30:15 UTC
Hello chinsan,

>   Try
>   http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/Makefile.inc
>   http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/xdr/Makefile.inc
>   or anything else which end with ".inc".

Ok I see why you want to allow .inc files. I haven't read through the
entire PR.

I think you want to contact wosch@ directly, as this needs his
intervention (he is responsible for lighttpd's configurations IIRC)

-- 
Best regards,
 Daniel                            mailto:danger@FreeBSD.org
Comment 3 chinsan freebsd_committer freebsd_triage 2007-08-30 16:58:55 UTC
Responsible Changed
From-To: freebsd-www->wosch

wosch@ will handle this.
Comment 4 Wolfram Schneider freebsd_committer freebsd_triage 2007-08-30 18:55:50 UTC
State Changed
From-To: open->closed

as suggested, allow '.inc' file names.