Re: Sub-domain in variable

2013-03-26 Thread huttarichard
Ok, I love u :D! Work perfectly... I solved all thx :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237799,237816#msg-237816 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Sub-domain in variable

2013-03-26 Thread huttarichard
Thanks lot, but still wont to work. And how i set $subdomain to "default" if subdomain doesnt exists? I try this: ~^(www\.)(?[^\.]*)(?[^\.]*)\.(?[^\.]*)$ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237799,237814#msg-237814 ___ nginx maili

Sub-domain in variable

2013-03-26 Thread huttarichard
Hi guys, I have question. My server_name looks like this: server_name ~^(www\.)(?[^\.]*)\.(?[^\.]*)$; but I need, for my website do subdomains. I try: server_name ~^(www\.)?(?\.)(?[^\.]*)\.(?[^\.]*)$; but won't work for me. And what will be super, if subdomain emtpy se to default (mean stri