Ok, I love u :D! Work perfectly... I solved all thx :)by huttarichard - Nginx Mailing List - English
Thanks lot, but still wont to work. And how i set $subdomain to "default" if subdomain doesnt exists? I try this: ~^(www\.)(?<subdomain>[^\.]*)(?<domain>[^\.]*)\.(?<tld>[^\.]*)$by huttarichard - Nginx Mailing List - English
Hi guys, I have question. My server_name looks like this: server_name ~^(www\.)(?<domain>[^\.]*)\.(?<tld>[^\.]*)$; but I need, for my website do subdomains. I try: server_name ~^(www\.)?(?<subdomain>\.)(?<domain>[^\.]*)\.(?<tld>[^\.]*)$; but won't work for me. And what will be super, if subdomain emtpy se to default (mean string "default").by huttarichard - Nginx Mailing List - English