[GH-ISSUE #27] Wildcard support #10

Closed
opened 2026-02-26 04:33:45 +03:00 by kerem · 2 comments
Owner

Originally created by @markonsn on GitHub (Aug 18, 2017).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/27

I have a docker container whith nginx and wordpress and use dns-proxy-server to resolve this as testdomain.dev.

I have configured nginx:

server {
    listen       80;
    server_name  *.testdomain.dev;
    ...
}

and try this too:

    listen       80  default_server;

How can I configure to use *.testdomain.dev?

Originally created by @markonsn on GitHub (Aug 18, 2017). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/27 I have a docker container whith nginx and wordpress and use dns-proxy-server to resolve this as testdomain.dev. I have configured nginx: ``` server { listen 80; server_name *.testdomain.dev; ... } ``` and try this too: ``` listen 80 default_server; ``` How can I configure to use *.testdomain.dev?
kerem closed this issue 2026-02-26 04:33:45 +03:00
Author
Owner

@mageddo commented on GitHub (Aug 21, 2017):

Hy @markonsn.

If I understand your point, at NGINX you want to proxy all traffic of all testdomain subdomains, is that right?

Now, I am no sure what are you not able to do with dns proxy server, if it is to solve all subdomains to the same container I am afraid that is not possible yet.

What you can do today is to start a container with many domains attached to, eg:

$ docker run --rm -e HOSTNAMES=server1.testdomain.dev,server2.testdomain.dev nginx

Then let me ask why solve all subdomains to a container is a good thing to you? Are you using Wordpress multiple sites or something like that?

Regards.

<!-- gh-comment-id:323776562 --> @mageddo commented on GitHub (Aug 21, 2017): Hy @markonsn. If I understand your point, at NGINX you want to proxy all traffic of all **testdomain** subdomains, is that right? Now, I am no sure what are you not able to do with **dns proxy server**, if it is to solve all subdomains to the same container I am afraid that is not possible yet. What you can do today is to start a container with many domains attached to, eg: ```bash $ docker run --rm -e HOSTNAMES=server1.testdomain.dev,server2.testdomain.dev nginx ``` Then let me ask why solve all subdomains to a container is a good thing to you? Are you using Wordpress multiple sites or something like that? Regards.
Author
Owner

@mageddo commented on GitHub (Aug 24, 2017):

I Will close, if you have any update please re-open it

<!-- gh-comment-id:324504764 --> @mageddo commented on GitHub (Aug 24, 2017): I Will close, if you have any update please re-open it
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#10
No description provided.