{"action":"closed","issue":{"url":"https://api.github.com/repos/hercules-team/augeas/issues/179","labels_url":"https://api.github.com/repos/hercules-team/augeas/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/hercules-team/augeas/issues/179/comments","events_url":"https://api.github.com/repos/hercules-team/augeas/issues/179/events","html_url":"https://github.com/hercules-team/augeas/issues/179","id":49989102,"number":179,"title":"nginx lens doesn't support recursive blocks","user":{"login":"jeffNagra","id":4619225,"avatar_url":"https://avatars.githubusercontent.com/u/4619225?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffNagra","html_url":"https://github.com/jeffNagra","followers_url":"https://api.github.com/users/jeffNagra/followers","following_url":"https://api.github.com/users/jeffNagra/following{/other_user}","gists_url":"https://api.github.com/users/jeffNagra/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffNagra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffNagra/subscriptions","organizations_url":"https://api.github.com/users/jeffNagra/orgs","repos_url":"https://api.github.com/users/jeffNagra/repos","events_url":"https://api.github.com/users/jeffNagra/events{/privacy}","received_events_url":"https://api.github.com/users/jeffNagra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hercules-team/augeas/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-25T08:34:24Z","updated_at":"2015-05-20T23:38:45Z","closed_at":"2015-05-20T23:38:45Z","body":"As discussed with Raphink....\r\n\r\nThe nginx lens is failing the parse even the default nginx.conf supplied with the nginx package (below)…\r\n \r\nset /augeas/load/nginx/lens \"Nginx.lns\"\r\nset /augeas/load/nginx/incl \"/home/root/jeff\"\r\nload\r\nprint /augeas//error\r\n\r\n/augeas/files/home/root/jeff/error = \"parse_failed\"\r\n/augeas/files/home/root/jeff/error/pos = \"410\"\r\n/augeas/files/home/root/jeff/error/line = \"20\"\r\n/augeas/files/home/root/jeff/error/char = \"0\"\r\n/augeas/files/home/root/jeff/error/lens = \"/usr/share/augeas/lenses/dist/nginx.aug:61.10-.57:\"\r\n/augeas/files/home/root/jeff/error/message = \"Iterated lens matched less than it should\"\r\n\r\nFull default nginx.conf (comes with the nginx RPM):\r\n\r\n\r\n```\r\n# For more information on configuration, see:\r\n#   * Official English Documentation: http://nginx.org/en/docs/\r\n#   * Official Russian Documentation: http://nginx.org/ru/docs/\r\n\r\nuser  nginx;\r\nworker_processes  1;\r\n\r\nerror_log  /var/log/nginx/error.log;\r\n#error_log  /var/log/nginx/error.log  notice;\r\n#error_log  /var/log/nginx/error.log  info;\r\n\r\npid        /run/nginx.pid;\r\n\r\n\r\nevents {\r\n    worker_connections  1024;\r\n}\r\n\r\n\r\nhttp {\r\n    include       /etc/nginx/mime.types;\r\n    default_type  application/octet-stream;\r\n\r\n    log_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\r\n                      '$status $body_bytes_sent \"$http_referer\" '\r\n                      '\"$http_user_agent\" \"$http_x_forwarded_for\"';\r\n\r\n    access_log  /var/log/nginx/access.log  main;\r\n\r\n    sendfile        on;\r\n    #tcp_nopush     on;\r\n\r\n    #keepalive_timeout  0;\r\n    keepalive_timeout  65;\r\n\r\n    #gzip  on;\r\n\r\n    index   index.html index.htm;\r\n\r\n    # Load modular configuration files from the /etc/nginx/conf.d directory.\r\n    # See http://nginx.org/en/docs/ngx_core_module.html#include\r\n    # for more information.\r\n    include /etc/nginx/conf.d/*.conf;\r\n\r\n    server {\r\n        listen       80 default_server;\r\n        server_name  localhost;\r\n        root         /usr/share/nginx/html;\r\n\r\n        #charset koi8-r;\r\n\r\n        #access_log  /var/log/nginx/host.access.log  main;\r\n\r\n        # Load configuration files for the default server block.\r\n        include /etc/nginx/default.d/*.conf;\r\n\r\n        location / {\r\n        }\r\n\r\n        # redirect server error pages to the static page /40x.html\r\n        #\r\n        error_page  404              /404.html;\r\n        location = /40x.html {\r\n        }\r\n\r\n        # redirect server error pages to the static page /50x.html\r\n        #\r\n        error_page   500 502 503 504  /50x.html;\r\n        location = /50x.html {\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n"}}