Re: nginx и drupal
    maxya 
    nginx-forum на nginx.us
       
    Вт Янв 18 22:51:28 MSK 2011
    
    
  
Попробуйте вот так
[code]
 location / {
                # This is cool because no php is touched for static
content
                try_files $uri @drupal;
        }
        location @drupal {
                # Some modules enforce no slash (/) at the end of the
URL
                # Else this rewrite block wouldn't be needed
(GlobalRedirect)
                rewrite ^/(.*)$ /index.php?q=$1;
        }
location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                #NOTE: You should have "cgi.fix_pathinfo = 0;" in
php.ini
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
                fastcgi_pass /tmp/php-fpm.sock;
        }
[/code]
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,164567,167332#msg-167332
    
    
Подробная информация о списке рассылки nginx-ru