Welcome! Log In Create A New Profile

Advanced

Re: nginx и drupal

January 18, 2011 02:51PM
Попробуйте вот так

[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]
Subject Author Posted

nginx и drupal

KaMaToZzz January 08, 2011 08:55AM

Re: nginx и drupal

maxya January 18, 2011 02:51PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready