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: rewrite && nginx == T_T


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: rewrite && nginx == T_T
  • From: Alexey Kovyrin <alexey@xxxxxxxxxxx>
  • Date: Wed, 25 Feb 2009 02:32:51 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=h3FZupehTwcqnNnk9Kq98XeLZ9VfTTMqt5V9xSQlSCM=; b=VuTckPj3bCbzgvGxMD6jwZjVaQmJlzsKGLYxy2orlFcqBZbDw3oF5L++YRw5HpZYBW +pGC3IawD9uKeK2oqxuAPd8dBfaBRQn9Lf28ZdXAoSN4H4aXxYiHN3C8JJsbBql+0xcU X37rxHEJYLN8bMY18WwQjIPa6gm1ydNYn3uf8=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ipM2QwbqP1PhwfU8v9JbKnC5y7/HlYedFs2bk+OWDAguDWL7IWbAgxEmgtCBVXX9Uj dkTFdqu2pScCOQfdJlTsCbYL+AEcFiqJo3/fw2ai+DruWWSqfNHJFMmUXSFu3fXsZh2V OzhZ+sqiOLoPP0voBniE1qohrh7P6ko309Hb4=
  • In-reply-to: <526196591.20090225011320@xxxxxxx>
  • References: <526196591.20090225011320@xxxxxxx>

location = /u.php - ?

2009/2/24 Sandel <sandel@xxxxxxx>:
> !
>    ...      ,  
> ...
>  nginx 0.6.35
>    :
> server {
> ...
>   location / {
>      root  /var/www/site/;
>      index index.php index.html index.htm;
>      rewrite ^/(.*)\.png$ u.php?anime=$1 last;
>    }
>
>    error_page  500 502 503 504 /50x.html;
>    location = /50x.html {
>      root  /usr/local/www/nginx-dist;
>    }
>    location ~ \.php$ {
>      root      html;
>      fastcgi_pass  unix:/var/run/php-fpm.sock;
>      fastcgi_index index.php;
>      fastcgi_param SCRIPT_FILENAME /var/www/site$fastcgi_script_name;
> #        fastcgi_param SCRIPT_FILENAME /var/www/site/u.php;
>      include    fastcgi_params;
>    }
> ...
>  , ,   ... ..    
> .png    u.php?anime= ... u.php   php 
>   .     
> fastcgi_param SCRIPT_FILENAME /var/www/site$fastcgi_script_name;
> ..    ,    $fastcgi_script_name  
>    ,     .png,   
>     , ..   (..  
> )...    
> "No input file specified". ..    $fastcgi_script_name  
> /u.php   ,      php  ,  
>  ...
>      ?
>     !     
> ((
>
>
>



-- 
Alexey Kovyrin
http://kovyrin.info/


 




Copyright © Lexa Software, 1996-2009.