sign * in server_name

Martin Minka martin.minka at gmail.com
Wed Jun 6 10:50:47 MSD 2007


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 ?

Thank you,
Martin Minka





More information about the nginx mailing list