nginx + drupal

Антон Кирюшкин swood at fotofor.biz
Tue Feb 24 16:24:15 MSK 2009


Запутали. Тогда получается вот такой конфиг?

location / {
try_files      $uri  $uri/  @drupal;
    }

location ~ \.php$ {
    try_files      $uri  @drupal;
    fastcgi_pass   127.0.0.1:1026;

    fastcgi_param SCRIPT_FILENAME
/home/www/public_html$fastcgi_script_name;
    fastcgi_param  QUERY_STRING     $query_string;
    fastcgi_param  REQUEST_METHOD   $request_method;
    fastcgi_param  CONTENT_TYPE     $content_type;
    fastcgi_param  CONTENT_LENGTH   $content_length;
        }
location @drupal {
    fastcgi_pass   127.0.0.1:1026;
    fastcgi_param SCRIPT_FILENAME
/home/www/public_html$fastcgi_script_name;
    fastcgi_param  QUERY_STRING     q=$request_uri;
    fastcgi_param  REQUEST_METHOD   $request_method;
    fastcgi_param  CONTENT_TYPE     $content_type;
    fastcgi_param  CONTENT_LENGTH   $content_length;
    }
        }

Дает это No input file specified.
*глаза в кучку.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090224/2237dd60/attachment.html>


More information about the nginx-ru mailing list