Changing Case of Variables in Nginx

  • Sorry for the resend, I didn’t see the email in my sent folder, so I
    don’t know if it was sent or not. If it was, then I apologize for the
    duplicate.

Hi,

I am trying to change the case of a variable to all lowercase. I know
there
is no function to do this, but I have been trying to do it with pcre and
rewrite rules and it is not working. I keep getting this…

pcre_compile() failed: PCRE does not support \L, \l, \N, \U, or \u
when I
check the config syntax.

Is there a way to change the case of a variable ($request_uri, etc.) to
all
lowercase?

Thanks,

John Draper

On Thu, Aug 7, 2008 at 8:27 AM, Resi C. [email protected] wrote:

Is there a way to change the case of a variable ($request_uri, etc.) to all
lowercase?

I’m interested in this as well. Actually, it is an almost essential
feature with hosting live Flash (Flash Media Server) video on demand,
since customers always forget what case they made their files. The
solution is to convert anything ingested into the system to all
lowercase and place nginx in front of the request URIs. At least,
that’s the preferred solution for me :slight_smile:

Cheers
Kon

Have you tried it at all with pcre and rewrite, because I haven’t been
able
to get that to work.

I don’t know enough about c programming, but it seems simple enough to
also
provide the variables with maybe a _lowercase appended to them, to
receive
them in lowercase. Sort of like $host_lowercase or $uri_lowercase. Would
this be an easy patch to generate?

Best,

John

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs