Arbitrarily slicing $server_name into subdomains?

merlin corey merlincorey at dc949.org
Mon Jan 11 22:22:35 MSK 2010


On Mon, Jan 11, 2010 at 11:21 AM, merlin corey <merlincorey at dc949.org> wrote:
> On Sat, Jan 9, 2010 at 1:03 PM, Igor Clark <lists at ruby-forum.com> wrote:
>> It would be great to be able to do a real arbitrary list, I wonder if
>> there's a way to do that?
>
> Hint: In your application and just pass the full domain to it ;)
>
> -- Merlin
>

To clarify, "your application" is some mythical and simple application
that just does routing the way you want.  20 line or less python
script including the fastcgi and daemonize ;).

-- Merlin



More information about the nginx mailing list