ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
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: Denis F. Latypoff <latypoff@xxxxxxxxx>
  • Date: Thu, 03 Feb 2011 07:51:34 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1296708694; bh=yqlyZtDMdsm171RvpBB5xYRbXdEPFOHpWbvVclhJAJI=; h=From:To:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=u2kGgcSINaOkNNOLTGEwKlWKzFg43f3eGjlo8YyJa0EHm3JYSO9KIv5arzPWwVcKC JyP/zmVWFy6Km/PmrQa1AFg+fqnS22kHyO23ROUKc5EFjzwkmHqmktPJeQuMiVNH8o NUQj8H7MekvuYtxMH+tkUnfHM/TC+4tzXk6vNDKU=
  • In-reply-to: <4D4A2251.9090906@xxxxxxx>
  • References: <4D4A2251.9090906@xxxxxxx>

03.02.2011, 06:34, "óÔÁÎÉÓÌÁ×" <server_inc@xxxxxxx>:
> úÄÒÁ×ÓÔ×ÕÊÔÅ!
>
> åÓÔØ ×ÏÔ ÔÁËÏÊ ËÏÎÆÉÇ
>
> server {
> šššššššššlisten šššššš127.0.0.1:80;
> šššššššššserver_name šdomain.org ;
>
> šššššššššaccess_log ššššš/var/log/nginx/domain.org.access_log main;
> šššššššššerror_log šššššš/var/log/nginx/domain.org.error_log notice;
>
> šššššššššerror_page šš500 502 503 504 š/50x.html;
> šššššššššlocation = /50x.html {
> šššššššššššššroot šš/usr/local/www/nginx-dist;
> ššššššššš}
>
- šššššššššlocation ~ \.php$ {
- šššššššššššššinclude php.settings;
- šššššššššššššinclude fastcgi_params;
- ššššššššš}
>
> šššššššššlocation / {
> šššššššššššššroot šš/var/www/domain.org;
> šššššššššššššindex šindex.php index.html;
> ššššššššš}
>
> šššššššššlocation ~*
> \.(css|gif|mp3|html|ico|jpeg|jpg|js|png|txt|xml|html|swf)$ {
> šššššššššššššroot šš/var/www/domain.org;
> šššššššššššššexpires 1d;
> šššššššššššššaccess_log ššoff;
> ššššššššš}
>
- šššššššššlocation ^~ /uploads_0/ {
+ šššššššššlocation ~ ^/uploads_0/ {
> šššššššššššššroot šš/var/www/domain.org;
> šššššššššššššinclude ššššššmime.types.secure;
> ššššššššš}
>
- šššššššššlocation ^~ /uploads_N/ {
+ šššššššššlocation ~ ^/uploads_N/ {
> šššššššššššššroot šš/var/www/domain.org;
> šššššššššššššinclude ššššššmime.types.secure;
> ššššššššš}
>
- šššššššššlocation ^~ /94ba1b16d3e2c/ {
+ šššššššššlocation ~ ^/94ba1b16d3e2c/ {
> šššššššššššššroot šš/var/www/domain.org;
> šššššššššššššinclude ššššššmime.types.secure;
> ššššššššš}
>
- šššššššššlocation ^~ /821323/ {
+ šššššššššlocation ~ ^/821323/ {
> šššššššššššššroot šš/var/www/domain.org;
> šššššššššššššinclude ššššššmime.types.secure;
> ššššššššš}
>
+ šššššššššlocation ~ \.php$ {
+ šššššššššššššinclude php.settings;
+ šššššššššššššinclude fastcgi_params;
+ ššššššššš}
> }
>
> ÐÏÄÓËÁÖÉÔÅ ÐÏÖÁÌÕÊÓÔÁ, ËÁË ÍÏÖÎÏ ÓÄÅÌÁÔØ, ÞÔÏÂ ÌÏËÜÊÛÎ
> location ~* \.(css|gif|mp3|html|ico|jpeg|jpg|js|png|txt|xml|html|swf)$
> ÒÁÓÐÒÏÓÔÒÁÎÑÌÓÑ ÎÁ ÌÏËÜÊÛÅÎÙ, ËÏÔÏÒÙÅ × ËÏÎÆÉÇÅ ÉÄÕÔ ÎÉÖÅ ÜÔÏÇÏ ÌÏËÜÊÛÅÎÁ?
> ôÁÍ ×ÉÔØ ÌÏËÅÊÛÅÎÙ Ó ^~ ... ÄÅÌÁÌÏÓØ ÄÌÑ ÔÏÇÏ, ÞÔÏ ÐÒÅÄÏÔ×ÒÁÔÉÔØ
> ÉÓÐÏÌÎÅÎÉÑ PHP ËÏÄÁ...
>
> ÚÁÌÅÚ × ÔÕÐÉË :(

åÓÔØ ÓÉÌØÎÏÅ ÓÒÅÄÓÔ×Ï ÏÔ ÔÕÐÉËÏ× - ÍÁÎÕÁÌ:
http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#location

-- 
br, Denis F. Latypoff.

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.