odiszapc / nginx-java-parser

Nginx configuration parser based on ANTLR4 grammar
259 stars 85 forks source link

Parser fails on replacement tokens proxy_redirect ~^(http://[^:]+):\d+(/.+)$ $1$2; #11

Open mg1213 opened 8 years ago

mg1213 commented 8 years ago

user root; http { server { proxy_redirect ~^(http://[^:]+):\d+(/.+)$ $1$2;
} } image

CodingFabian commented 7 years ago

We have a case where the parser fails on this statement which extracts env variables from host headers:

        server_name ~^(?<subdomain>.+)\.example\.com$;

looks likely to be related