Welcome! Log In Create A New Profile


Literal dollar signs in values

Anonymous User
April 20, 2021 10:18PM

I can't find an existing bug on this, and don't have a recent version
handy to test on, so I'm asking here first: Is it still impossible to
insert a literal dollar symbol in a config value?

I was debugging nested location config with a statement like so:

return 200 'loc /foo/bar/ \.xyz$ $uri';

This caused an "[emerg] invalid variable name" error when testing the
config. Apparently a known issue that's documented at
but the workaround is very hacky.

If this is not resolved already, could this be done in a
backwards-compatible manner by nginx interpreting "$$" as a literal "$"?

nginx-devel mailing list
Subject Author Views Posted

Literal dollar signs in values

Anonymous User 110 April 20, 2021 10:18PM

Re: Literal dollar signs in values

Maxim Dounin 45 April 21, 2021 09:26AM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready