Re: SSI

Aleksandr Sytar sytar.alex gmail.com
13 17:43:51 MSD 2010


13  2010 . 17:16  Igor Sysoev <igor  sysoev.ru> :
> On Sun, Jun 13, 2010 at 01:58:19PM +0400, Aleksandr Sytar wrote:
>
>>   -    nginx   error_page  SSI-include
>>
>> server {
>>    listen 80;
>>    server_name name;
>>
>>    charset utf-8;
>>
>>    access_log /var/log/nginx/test.access.log combined;
>>    access_log /var/log/nginx/upstream.test.access.log upstream;
>>
>>    root  /var/www/www;
>>
>>    ssi on;
>>
>>    gzip off;
>>
>>    log_subrequest on;
>>
>>    set   $memcached_key "$uri";
>>
>>    location / {
>>        default_type    text/html;
>>        memcached_pass memcached;
>>        error_page   404 502 504 = @php;
>>     }
>>
>> #  ssi-include
>>     location /catalog/get_subcategory_product {
>>        default_type    text/html;
>>        memcached_pass memcached;
>>        error_page   404 502 504 = @php;
>>     }
>>
>>     location @php {
>>        fastcgi_pass backend;
>>        include fastcgi_params;
>>        fastcgi_param SCRIPT_FILENAME $document_root/index.php;
>>        fastcgi_param PATH_INFO    $uri;
>>        fastcgi_param REQUEST_URI   $uri;
>>     }
>> }
>>
>>  -   nginx   ,    
>>   404  error_page
>
>  ,   .
>

     .  upstream.log   
  nginx  .    -   
,    try_files  ,    
 .



-- 
Have a nice day
-----------   -----------
A non-text attachment was scrubbed...
Name: error.log
Type: application/octet-stream
Size: 70983 bytes
Desc: 
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20100613/469a0af1/attachment-0004.obj>
-----------   -----------
A non-text attachment was scrubbed...
Name: test.access.log
Type: application/octet-stream
Size: 428 bytes
Desc: 
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20100613/469a0af1/attachment-0005.obj>
-----------   -----------
A non-text attachment was scrubbed...
Name: test.conf
Type: application/octet-stream
Size: 3022 bytes
Desc: 
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20100613/469a0af1/attachment-0006.obj>
-----------   -----------
A non-text attachment was scrubbed...
Name: upstream.test.access.log
Type: application/octet-stream
Size: 248 bytes
Desc: 
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20100613/469a0af1/attachment-0007.obj>


nginx-ru