Multiple vhosts with wildcards?

Yusuf Goolamabbas yusufg at gmail.com
Wed Feb 20 16:39:11 MSK 2008


>  Use regex (note "~"):
>
>  server {
>     server_name review.it.ourdomain.com ~^review\..+\.ourdomain\.com$;
>     ...
>  }
>

Cool, never knew that server_name supported regex. Didn't see that in
the English wiki, just cross referencd it in the Russian docs





More information about the nginx mailing list