Generated Regex
~^(.+)\.example\.com$
Copied to clipboard!
1. Open your Nginx site configuration file (e.g., /etc/nginx/sites-available/default).
2. Inside the server block, use the server_name directive:
server_name ~^(.+)\.example\.com$;
3. Reload Nginx: sudo nginx -s reload