ðòïåëôù 


  áòèé÷ 


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: nginx É drupal



ðÏÐÒÏÂÕÊÔÅ ×ÏÔ ÔÁË

[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 mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.