SV: Server_Name regular expression

2013-08-30 Thread Jens Rantil
Hi, Maybe http://regex101.com/ could help? Cheers, Jens Från: nginx-boun...@nginx.org [mailto:nginx-boun...@nginx.org] För Jonathan Matthews Skickat: den 30 augusti 2013 10:54 Till: nginx@nginx.org Ämne: Re: Server_Name regular expression On 29 Aug 2013 10:01, "christospap" mailto:nginx-fo..

what is simplest way to convert Request-URI to lowercase?

2013-08-30 Thread Anh K. Huynh
Hello, We are using nginx heavily. We need to rewrite all request URIs into lowercase, e.g, http://foo.bar/ThiS_will_be_Rewritten/?q=Foobar will be translated into http://foo.bar/this_will_be_rewritten/?q=foobar I know some modules (Perl, Lua) can do this. My question is what the simplest

Re: Server_Name regular expression

2013-08-30 Thread Jonathan Matthews
On 29 Aug 2013 10:01, "christospap" wrote: > > I would like to syntax a regular expression which will match two server > names. The server names are example.com and www.example.com. In particular, > a regular expression for www or nothing > > I wrote the following regular expression (www\.|)exampl