Problem with wildcard subdomains - error 404

Thanks for your reply.

To enable wildcard DNS, I added an A record with asterisk for a host and added ServerAlias *.domain-name to configure the virtual host with directadmin.
 
for Apache it is ServerAlias *.|DOMAIN|

but what to add in custom filed for Nginx or Nginx_Apache ?

Edit I guess it

server_name *.|DOMAIN|
 
Back
Top