Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: server_name & location captures
- To: nginx-ru@xxxxxxxxx
- Subject: Re: server_name & location captures
- From: "Alex, the Marrch Ca'at" <marrch.caat@xxxxxxxxx>
- Date: Wed, 21 Oct 2009 18:27:39 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xrouBYRd07nDl+7s86FUJgZyBORuLM1zdcT0TqLrun0=; b=bmOOj/onyp4qisA9JlYQRw8GNsQRwL3g5FsId1Aas/g5Va43vh+9DO1oniYfPeEtQS eETKAVUGZU63SKzevvrCXgAAW8nh8MNRsQpvel5STWswsu+K93K0jCxrNe6b5Uvflljo ZPGxeGBlZF9D58EcX4x7WD1rRg17A7Gma7cJg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VazHCweb4fksZFR1n1/BAtiqXiaQOPv8SR1lAsacz4kgvUHxcOB6029pqtUiR2PGqa mvclkRqlDaoNB5U5rJ6qwlksT0AONiSQSqFqzx2ZGq+bdX5UUmkLZsq3l79KgyhM7yiY ho9jdzBbavvPIxT8Wp3Cpzer0YpctcwienYm4=
- In-reply-to: <20091021141713.GN3199@xxxxxxxxxxxxx>
- References: <20091021141713.GN3199@xxxxxxxxxxxxx>
Это было бы прекрасно, я полагаю.
2009/10/21 Igor Sysoev <is@xxxxxxxxxxxxx>:
> Есть идея для выделений в server_name и location использовать специальные
> имена %N и @N:
>
> server {
> server_name ~^(\w+)\.intrasearch\.(.+)$;
> root /usr/local/www/intrasearch-dev/%1;
>
> location ~ ^/~user(/[^/]+)(.+)$ {
> alias /homes/@1/public_html@2;
>
>
> --
> Игорь Сысоев
> http://sysoev.ru
>
>
|