Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: вопрос о возможности и невозможности.
- To: nginx-ru@xxxxxxxxx
- Subject: Re: вопрос о возможности и невозможности.
- From: "Alexey Kovyrin" <alexey@xxxxxxxxxxx>
- Date: Sat, 25 Oct 2008 20:15:41 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=ANYDKVMkaqFJff0Os2Tvj9tO4Weoz2QjCdMaygAlo8w=; b=n++TvkuOKzRGSB0axWJzTqUwgNnYUrcoXxk6jwA1e1bY+GKHM4Psi6DLmsH3fEuN4M 5nCF5Xj/YKhlapDE8cLqRWbqHhKCTDA36ktAR53xpllbugtkf041XCev2YoLdSOBo12O y8TfZBeA3IqIaz1poJptWiVdCtAWCyN/OrUks=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=sDm11JGXaIRo9m8gom1bTstmdyAKWsrTMbBixQsYj6aPT/jJP5GaUt887L7i+0ac7K D8gedhul1GspDat/AwtuFYdfZHUB6ZKpGbdmxqd+QLrxR622Z9N1PVF4yITq0lf+ZHyZ FICHuLgpdkVz1THNXt3O3eP5TDrf2Sw2vByu0=
- In-reply-to: <6420aa4a0810251350i66093100j42dfdfa973b35ff4@xxxxxxxxxxxxxx>
- References: <6420aa4a0810251054o5745323fjaccefc561537ea98@xxxxxxxxxxxxxx> <1224962412.17159.3.camel@xxxxxxxxxxxxxxxxxxxxx> <6420aa4a0810251350i66093100j42dfdfa973b35ff4@xxxxxxxxxxxxxx>
2008/10/25 Антон Кирюшкин <swood@xxxxxxxxxxx>:
> Вась, наверное все же у тебя коряво выглядит ))
> Правила реврайта следующие:
(1)
> RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule (.*) index.php
(2)
> RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
> RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
> RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
> RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
> RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
> RewriteRule ^(.*)$ index.php [F,L]
Реализуемо нгинксом без вопросов. Основные мысли:
1) RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] - локейшн
1.1) остальное в нем - иф(ы)
2) дефолтный локейшн с ифами
Вывод - апач не нужен :-)
--
Alexey Kovyrin
http://kovyrin.info/
|