Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard domain #668

Closed
AlmogBaku opened this issue Aug 9, 2015 · 3 comments
Closed

Wildcard domain #668

AlmogBaku opened this issue Aug 9, 2015 · 3 comments
Labels
needs-feedback Further information is requested

Comments

@AlmogBaku
Copy link

Is it possible to define a wildcard domain, such as:

    server_name           => "*",

If i'm right it'll create a file named *.conf which will probably break the system.

@3flex
Copy link
Contributor

3flex commented Aug 10, 2015

nginx doesn't have the concept of wildcard domains like this, see this documentation from http://nginx.org/en/docs/http/server_names.html#miscellaneous_names:

nginx versions up to 0.6.25 supported the special name “” which was erroneously interpreted to be a catch-all name. It never functioned as a catch-all or wildcard server name. Instead, it supplied the functionality that is now provided by the server_name_in_redirect directive. The special name “” is now deprecated and the server_name_in_redirect directive should be used. Note that there is no way to specify the catch-all name or the default server using the server_name directive. This is a property of the listen directive and not of the server_name directive.

So you are correct in saying that this won't work. What are you trying to achieve?

@3flex 3flex added the needs-feedback Further information is requested label Aug 12, 2015
@mig5
Copy link

mig5 commented Oct 9, 2015

You probably want to create one with

server_name _; 

with the listen_options parameter set to 'default', this would probably create a 'catch all' domain (if that is your intention).

@3flex
Copy link
Contributor

3flex commented Nov 5, 2015

Closing this for now, as wildcard * domains are not supported in nginx so won't be supported by this module.

@3flex 3flex closed this as completed Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants