[Bug 257726] www/obhttpd cannot parse typese {} block

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 10 Aug 2021 05:39:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257726

            Bug ID: 257726
           Summary: www/obhttpd cannot parse typese {} block
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: quentinrbaker@gmail.com
                CC: koue@chaosophia.net
             Flags: maintainer-feedback?(koue@chaosophia.net)
                CC: koue@chaosophia.net

Created attachment 227070
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227070&action=edit
Example obhttpd.conf file

I was trying to override a MIME type using the "types" option as described in
the manual page for obhttpd.conf
(https://www.freebsd.org/cgi/man.cgi?query=obhttpd.conf&manpath=FreeBSD+13.0-RELEASE+and+Ports)
and found that adding any types block results in a syntax error according to
"obhttpd -n". 

Attached is the failing server config (used to present port-mgmt/synth logs).
The configuration will be read successfully if the types block is removed.

-- 
You are receiving this mail because:
You are the assignee for the bug.