Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
location всё кроме одного
- To: nginx-ru@xxxxxxxxx
- Subject: location всё кроме одного
- From: "mennanov" <nginx-forum@xxxxxxxx>
- Date: Wed, 23 Nov 2011 09:03:14 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=DfXICgRP3FElV2lMU1k2vm1A4qY/ulDNMoo/UiV+d80=; b=nn1/XDy8hq9dpP0fvdLwaf0GZARPs09Px7hrHbMmZf3FWisMQcXrh2FSymDGH2w8JQCOqBhacar1zshViT8kYXWLVRVp0PVat7AxvfF91d9lBYhyJHVYc6dSNc83bndW;
Есть конфиг вида:
location /cms/ {
rewrite (.*) /webroot/cms/webroot/$1;
if (!-f $request_filename) {
rewrite (.*) /webroot/cms/engine/index.php;
}
}
location ВСЁ_КРОМЕ_/CMS/ {
try_files /webroot/$uri /engine/index.php;
}
Как это сделать? location ~ (?!cms) {} отдает
ошибку 500 из-за бесконечного цикла.
Спасибо.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,218830,218830#msg-218830
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|