Arbitrarily slicing $server_name into subdomains?

Igor Clark lists at ruby-forum.com
Fri Jan 15 01:32:06 MSK 2010


merlin corey wrote:

>> 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

Thanks Merlin. Part of the point is to be able to run code unmodified in 
various environments, inside dynamic vhosts using wildcard DNS. Do you 
mean as a 3rd layer between nginx and the web app?

Cheers
Igor Clark
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list