redirect subdomain to internal location

António P. P. Almeida appa at perusio.net
Wed May 25 17:22:50 MSD 2011


On 25 Mai 2011 14h16 WEST, nginx-forum at nginx.us wrote:

> Thanks.
>
> No, I want www and ww4 to use different locations, with all other
> subdomains using another single location.

server {
  server_name www.tmp2app.com;

  (...) # put one location here
}

server {
  server_name www4.tmp2app.com;
  
  (...) # put the other location here
}

server {
  server_name *.tmp2app.com;
  
  (...) # put the remaining here
}

--- appa




More information about the nginx mailing list