Regular Expression global redirect

Edho Arief edho at myconan.net
Sun Feb 26 06:19:25 UTC 2012


2012/2/26 António P. P. Almeida <appa at perusio.net>:
> server {
>    server_name ^~www\.(?<domain>.*)$;
>    return 301 http://$domain;
> }
>

Where can I read the documentation for this? It doesn't seem to be
mentioned in nginx.org docs and nginx wiki



More information about the nginx mailing list