8 messages in ru.sysoev.nginxRe: sign * in server_name
FromSent OnAttachments
Martin MinkaJun 5, 2007 11:50 pm 
Igor SysoevJun 6, 2007 1:53 am 
Wayne E. SeguinJun 6, 2007 4:49 am 
Igor SysoevJun 6, 2007 12:22 pm.txt
Martin MinkaJun 8, 2007 11:57 am 
Martin MinkaJun 12, 2007 2:50 pm 
Igor SysoevJun 13, 2007 3:31 am 
Igor SysoevJun 13, 2007 3:38 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: sign * in server_nameActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Jun 13, 2007 3:31:22 am
List:ru.sysoev.nginx

On Tue, Jun 12, 2007 at 11:51:03PM +0200, Martin Minka wrote:

Hello Igor, will this funcionality be included in next release or do I need to apply the path always (will that work) ?

It will be in 0.6.0 release today or tomorrow. I have split development to the stable and current branches. The new features and most bugfixes will be first in current branch. After some time they will be merged to stable branch.

Igor Sysoev wrote:

On Wed, Jun 06, 2007 at 12:53:30PM +0400, Igor Sysoev wrote:

On Wed, Jun 06, 2007 at 08:50:47AM +0200, Martin Minka wrote:

There is written in Wiki documentation that it is possible to use * as first part of name in server_name directive. I need to catch all servers directed to my server which name starts with a word.

For example will this work ?

server { listen 80; server_name main.server.com partner.* affiliate.* ; ......

If not, is there another way to achieve this ?

nginx currently does not support such wildcards, but it is relatively easy to add them, because their handling is the same as "*.site.com".

The attached patch adds the "www.text.*" wildcards (full tail part only) to the "server_name", "map", and "valid_referer" directives.

Could you test it ?