Arbitrarily slicing $server_name into subdomains?

Igor Clark lists at ruby-forum.com
Wed Jan 6 22:42:32 MSK 2010


BTW, I just realised that example could even be

    server_name    ~^(.*)\.(.*)\.myserver\.net$;
    root    /var/www/docs/myserver.net/$2/$1/public;

- and I'm on 0.7.64.

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



More information about the nginx mailing list