server
{
server_name .domain.com;
server_name www.domain.com;
#rewrite ^ $scheme://domain.com$request_uri permanent;
//do something else