Rewrite Performance Question
Denis F. Latypoff
latypoff at yandex.ru
Tue Jul 20 14:12:53 MSD 2010
> On 19.07.2010 17:49, Edho P Arief wrote:
> > it would be nice if the config supports simple (extended)
> > glob(3)-style pattern matching so it would be something like
> >
> > server_name {www.,}forum.{at,ch,com,eu,info,net,org};
> >
> > which should be automatically expanded into
> >
> > www.forum.at
> > www.forum.ch
> > www.forum.com
> > ...
> > forum.net
> > forum.org
> You can use some preprocessor to generate nginx config from template (with
> globs, variables and other features missing in nginx config)
>
server_name ~"(www.)?forum.(at|ch|com|eu|info|net|org)";
or
server_name ~"(www.|)forum.(at|ch|com|eu|info|net|org)";
?
--
br, Denis F. Latypoff.
More information about the nginx
mailing list