Reading man
page of nghttpx
we see that --backend
option supports the following structure:
--backend=(<HOST>,<PORT>|unix:<PATH>)[;[<PATTERN>[:...]][[;<PARAM>]...]
Since you have backend=127.0.0.0,9901;<PATTERN>
, everything that follows ;
should be a valid <PATTERN>
. Upon further reading of the manual we see that it says:
Since ";" and ":" are used as delimiter, must not contain these characters. Since ";" has special meaning in shell, the option value must be quoted.
Now, looking at your error, it says:
shrpx_config.cc:1418 backend: ';' must not be used in pattern
Which indicates that you have used ;
in a pattern, which is not allowed. This agrees with the manual excerpt above.
So it seems that your issue is that you have one too many ;
characters in your pattern. At the moment it is ;proto=h2
, when it should be proto=h2
. Try removing the redundant ;
(i.e. it should read backend=127.0.0.0,9901;proto=h2
) and see if that helps with the error you're getting.