my nginx configuration is
server{ listen 80; server_name ~(?[^.]+).mydomain.com add_header X-Frame-Options "SAMEORIGIN"