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: Andrei Nigmatulin <andrei.nigmatulin@xxxxxxxxx>
- Date: Fri, 19 Sep 2008 01:25:20 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=VGboTlRaUfC8dX0wHN51PUNPilqknrSCMp6hU7mbSbs=; b=GMbMX0OUs8AIH8dZ44eUDyAviBMqrMBqCdb+9qzCOEsWIBGUNEaBbjEhjz9DGZvvLC Pon4cES67LS5WlUeyA795kl2w4I5D8N1dkLgOcOCkJK5HsebfNaLcN/njQSqjmDWKC4S i+gzDCKHUA5bH0I1Mgvrcu+jL37kUMV2mGQ0M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=UBbDZsGcowswDknTGmn7pPVbTPyXYZbdvUiQnTSpPTLcUnlB1KnfuUIOBPXYr4Sl3w NVB1yOIckzRsmH2d8Isdd5RKcgROydjjNjcWi3g5jjRPnPbiX/nW4C0Ev94h1ks4uPA6 TAdGaGyvSZ/psGANB/xQp0dujAkAZTx/7HDZU=
- In-reply-to: <91c9771b0809181411x4865f8f2odf8307e0855317ec@xxxxxxxxxxxxxx>
- References: <91c9771b0809181411x4865f8f2odf8307e0855317ec@xxxxxxxxxxxxxx>
On Friday 19 September 2008 01:11, Борис Долгов 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 - правильный.
> Как можно это объяснить?
> Заранее спасибо.
--
Andrei Nigmatulin
GPG PUB KEY 6449830D
Now I lay me down to sleep(3)
Pray the OS my core to keep
If I die before I wake
Pray the Disk my core to take
|