# Catch all domains \*and\* subdomains?

**URL:** <https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141>\
**Category:** NGINX\
**Created:** [October 7, 2010, 10:43am UTC](https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141 "2010-10-07T10:43:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillipoertel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4af34b/32.png) [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Post date:** [October 7, 2010, 10:43am UTC](https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141/1 "2010-10-07T10:43:18Z")

</div>

How can I configure nginx to catch all domains and all subdomains of  
any domains?

Using the following catches all domains, but doesn’t seem to catch  
subdomains:

server {  
server\_name \_;  
}

## Suggestions?

_Phillip B Oldham_  
ActivityHQ  
removed\_email\_address@domain.invalid [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

_Policies_

This e-mail and its attachments are intended for the above named  
recipient(s) only and may be confidential. If they have come to you in  
error, please reply to this e-mail and highlight the error. No action  
should be taken regarding content, nor must you copy or show them to  
anyone.

This e-mail has been created in the knowledge that Internet e-mail is  
not a 100% secure communications medium, and we have taken steps to  
ensure that this e-mail and attachments are free from any virus. We must  
advise that in keeping with good computing practice the recipient should  
ensure they are completely virus free, and that you understand and  
observe the lack of security when e-mailing us.

---

<div class="post-metadata">

**Author:** ![phillipoertel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4af34b/32.png) [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Post date:** [October 7, 2010, 11:23am UTC](https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141/2 "2010-10-07T11:23:06Z")

</div>

On Thu, Oct 7, 2010 at 3:42 PM, Phillip O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Suggestions?  
> just don’t specify server\_name

–  
O\< ascii ribbon campaign - stop html mail - [www.asciiribbon.org](http://www.asciiribbon.org)

---

<div class="post-metadata">

**Author:** ![phillipoertel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4af34b/32.png) [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Post date:** [October 7, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141/3 "2010-10-07T12:10:31Z")

</div>

2010/10/7 Edho P Arief [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> > }  
> > nginx mailing list  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

Remove server\_name \_;
