#103·gixy

[nginx_parser] WARNING Skip unparseable block: "http"

Author: FrodoxCreated Sep 17, 2019Updated Dec 16, 2025

Gixy v0.1.20 failes with message [nginx_parser] WARNING Skip unparseable block: "http" on config like

    log_format json escape=json ''
        '{ "@timestamp": "$time_iso8601", '
...
# problem line:
        '"any_variable": "any-value", ' # header "Location" received from upstream (in case of redirect)
...
        '"upstream_status": "$upstream_status" '
        '}';

and after tests:

# gixy -d nginx.conf
[main]	DEBUG	logging initialized
[manager]	DEBUG	Audit config file: /etc/nginx/nginx.conf
[nginx_parser]	WARNING	Skip unparseable block: "http"

==================== Results ===================
No issues found.

==================== Summary ===================
Total issues:
    Unspecified: 0
    Low: 0
    Medium: 0
    High: 0

if I using line like '"any_variable": "any-value", ' # header "Location" received from upstream in case of redirect or '"any_variable": "any-value", ' # header "Location" received from upstream (redirect)

all works fine. Problems with parser:

  • it parses comments (but it shouldn't)
  • it failes to parse comment like (two or more words in braces)