Server_name help

Hi
I serve multiple apps using one nginx server using server_name like this

    server_name  APP1.domain1.com;

i want to server_name to be app1.*.com, how do i do this correctly for
nginx?
thanks

On Thu, Jul 24, 2008 at 10:18:14AM -0700, [email protected] wrote:

I serve multiple apps using one nginx server using server_name like this

    server_name  APP1.domain1.com;

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$;

On Thu, Jul 24, 2008 at 11:02 AM, Igor S. [email protected] wrote:

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

i use 0.7.6 and it works great! thanks!!

2010/1/6 kevin [email protected]:

           fastcgi_pass backend_dev;

server_name XXX.*


O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

On Tue, Jan 5, 2010 at 7:16 PM, Edho P Arief [email protected]
wrote:

        root   /home/web/work;

server_name XXX.*

this does not work i get 404 error.
thanks