I want to use $ in module argument

Anatoli Marinov a.marinov at ucdn.com
Thu Jun 12 08:44:29 UTC 2014


Thanks Maxim!
At the moment I am using @ instead of $ and internally in my module I
replace it back.
Its a different kind of workaround :)


On Thu, Jun 12, 2014 at 1:29 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
>
> On Wed, Jun 11, 2014 at 01:49:34PM +0300, Anatoli Marinov wrote:
>
> > Hello,
> > I am working on custom module which uses pcre. It could be configured and
> > one from the arguments is a regular expression. How can I use argument
> with
> > $ sign into it. Every time when I try for example use it like "
> > my_custom_module '\.mp4$' " I got the error:
> >
> > invalid variable name in nginx.conf:62
> >
> > In line 62 I have my module configuration.
> > I tried to escape $ with \$ and also tried $$ but they both don't work.
>
> http://mailman.nginx.org/pipermail/nginx/2011-November/030406.html
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140612/c923bb06/attachment.html>


More information about the nginx-devel mailing list