Re: SSI

Aleksandr Sytar sytar.alex gmail.com
13 14:08:27 MSD 2010


  0.7.65

13  2010 . 13:58  Aleksandr Sytar
<sytar.alex  gmail.com> :
>   -    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
>
>  try_files (      -
> try_files @memcached @php) - nginx  ң   @php:
>
> 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 / {
>        try_files @memcached @php;
>    }
>   location @memcached {
>        default_type    text/html;
>        memcached_pass memcached;
>        error_page   404 502 504 = @php;
>   }
>
> #ssi-include ң   /
>
>    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;
>    }
> }
>
>  ?
> --
> Have a nice day
>



-- 
Have a nice day


nginx-ru