Regular expressions in server_name: pattern length

Phillip Oldham phill at activityhq.com
Wed Dec 9 13:21:11 MSK 2009


Igor Sysoev wrote:
> It's possible:
>
> server {
>      server_name ~^([a-z]{2,3})?\d{3,6}\.mysite\.org$;
> }
>
> server {
>      server_name ~^(\w+)\.mysite\.org$;
> }
>   
Is this with the latest devel, or stable?
> You may also control the order of sites.
>   
Can you give an example on how to do this?

Thanks Igor!



More information about the nginx mailing list