Re: Sypex Dumper 2. и nginx
alexd
nginx-forum на nginx.us
Чт Фев 4 15:56:23 MSK 2010
localhost:~# cat /etc/nginx/sites-available/shah-online.ru
server {
listen 80;
server_name shah-online.ru;
root /var/www/sites/shah-online.ru;
access_log /var/log/nginx/shah-online.access.log;
location / {
try_files $uri $uri/ @drupal;
index index.php index.html index.htm;
}
location ~ ^/sdx/ {
root /var/www/sites/shah-online.ru/sdx;
index index.php;
location ~* \.php$ {
include fastcgi_php_fpm;
}
}
location ~ \.php$ {
try_files $uri @drupal;
include fastcgi_php_fpm;
}
location @drupal {
include fastcgi_php_fpm;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param QUERY_STRING q=$uri&$args;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,50376,50400#msg-50400
Подробная информация о списке рассылки nginx-ru