ПРОЕКТЫ 


  АРХИВ 


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: странное поведение document_root


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: странное поведение document_root
  • From: Roxis <roxis@xxxxxxx>
  • Date: Thu, 18 Sep 2008 23:22:53 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :references:in-reply-to:x-face:x-mailer:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:sender; bh=NCQ6s4Fqbn/Bp/oJh/14o+LaE/iuuieHsAneo+7xoZI=; b=lP9V22Z8tBeqNv/9whMhB/AaTMCm68XUzoRtfBod/mb8n6Jdyb56fWbpnC8oiXf75E +/PD65w7Je/myJswpVe+KhDgU09105FnBu8ncMmSvPX/IOjjOGlBJu4ZvqjUaW2aXyDk yeTwsR8H28aaX8lUTdN6OXR0A1qoy3yTkHhKw=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:references:in-reply-to:x-face:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition:message-id:sender; b=G3Rm71BqPp9MP4MPecAtZztrIWcreB688LmEasR2NAq0d4SH0ZyANIyL3rrkJFGcTH kFvEVOIhTNl6BlvQ8eifwXNfAbyGbPb7hSoGdaEw2hLNcQMA2l1fe5oIo6LEDnv4+AWq xq5sKzkngLONLU4TUr84T6EiKwIMZBpv/7DZM=
  • In-reply-to: <91c9771b0809181411x4865f8f2odf8307e0855317ec@xxxxxxxxxxxxxx>
  • References: <91c9771b0809181411x4865f8f2odf8307e0855317ec@xxxxxxxxxxxxxx>

On Thursday 18 September 2008, Борис Долгов wrote:
> Добрый вечер,
> имеем след. конфиг:
>     server {
>         listen       80;
>         server_name  nnn;
>         root /home/web/nnn;
>         rewrite  ^(.*).(html)$ /index.php?cat=$1&$query_string last;
>         location / {
>             index  index.php index.html index.htm;
>         }
>         location ~ \.php$ {
>             root           html;

>             fastcgi_pass   127.0.0.1:9000;
>             fastcgi_index  index.php;
>             fastcgi_param  SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
>             log_format cgi '$document_root$fastcgi_script_name';
>             access_log logs/cgi.txt cgi;
>             include        fastcgi_params;
>         }
>         location ~ /\.ht {
>             return 403;
>         }
>
> в logs/cgi.txt:
> /usr/local/nginx/html/index.php
> Без рерайта $document_root - правильный.
> Как можно это объяснить?
> Заранее спасибо.
убрать "root html;" из location ~ \.php$



 




Copyright © Lexa Software, 1996-2009.