server {
  server_name example1.com;
  location / {
    proxy_pass http://backend;
  }
}
server {
    listen 80;
    server_name www.example1.com;
    rewrite ^/(.*)$ http://example1.com/$1;
}