Welcome! Log In Create A New Profile

Advanced

Sub-domain in variable

March 26, 2013 08:56AM
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").

Can me anybody help?
SubjectAuthorPosted

Sub-domain in variable

huttarichardMarch 26, 2013 08:56AM

Re: Sub-domain in variable

Nikolas Stevenson-MolnarMarch 26, 2013 12:54PM

Re: Sub-domain in variable

huttarichardMarch 26, 2013 02:01PM

Re: Sub-domain in variable

Nikolas Stevenson-MolnarMarch 26, 2013 02:20PM

Re: Sub-domain in variable

huttarichardMarch 26, 2013 02:42PM

Re: Sub-domain in variable

franciscROAugust 02, 2014 07:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready