server_name help

Igor Sysoev is at
Thu Jul 24 22:02:15 MSD 2008

On Thu, Jul 24, 2008 at 10:18:14AM -0700, rkmr.em at wrote:

> I serve multiple apps using one nginx server using server_name like this
>         server_name;
> i want to server_name to be app1.*.com, how do i do this correctly for nginx?

Using regex in 0.6.25+:

       server_name  ~^app1\..+\.com$;

Igor Sysoev

More information about the nginx mailing list