1 message in ru.sysoev.nginxa*.domain.com-like wildcard subdomain...
FromSent OnAttachments
webmasterMar 7, 2007 1:21 pm 
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:a*.domain.com-like wildcard subdomain redirect or URL matching table?Actions...
From:webmaster (admi@public.gmane.org)
Date:Mar 7, 2007 1:21:33 pm
List:ru.sysoev.nginx

Hi, I am wondering whether nginx can be used for the following scenario:

nginx is set up as a frontend load balancer, and pass HTTP request based on their URL to backend webservers.

Currently, I am using a configuration, based on a server {} enclosure for each subdomain. However, a better way would be using the URL match based on some sort of wildcard, like a*.domain.com (any subdomain name starting with the letter "a").

Ideally, it would be even better if a matching table can be used, say a matching table file containing a list like the following:

a1.domain.com 192.168.0.1 a2.domain.com 192.168.0.1 a3.domain.com 192.168.0.2 b1.domain.com 192.168.0.2

Is this doable with nginx and how? Thanks.

Best,

-kingler