Welcome! Log In Create A New Profile

Advanced

Re: nginx try_files & drupal

Vasiliy G Tolstov
October 09, 2009 05:18AM
В Птн, 09/10/2009 в 12:10 +0400, Vasiliy G Tolstov пишет:

> Да, теперь работает вроде все.
>


То есть для drupal готовый варинант с try_files таков:

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

location ~ \.php$ {
try_files $uri @drupal;
fastcgi_pass ...............;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params; #файл идет по-умолчанию
}


location @drupal {
fastcgi_pass unix:/var/run/php/selfip.ru;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param QUERY_STRING q=$uri&$args;

fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param DOCUMENT_URI $uri;

fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

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;

fastcgi_param REDIRECT_STATUS 200;
}


А на сколько @drupal такой лучше/хуже по производительности и идеологии
будущих верси nginx по сравнению с

location @drupal {
rewrite ^/(.*)$ /index.php?q=$1 last;
}


--
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru
Subject Author Posted

nginx try_files & drupal

Vasiliy G Tolstov September 29, 2009 09:42AM

Re: nginx try_files & drupal

Vitaliy Lisenko October 08, 2009 02:12AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 08, 2009 02:56AM

Re: nginx try_files & drupal

Igor Sysoev October 08, 2009 03:04AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 08, 2009 03:48AM

Re: nginx try_files & drupal

Igor Sysoev October 08, 2009 03:16AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 08, 2009 04:00AM

Re: nginx try_files & drupal

Igor Sysoev October 08, 2009 04:24AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 08, 2009 05:04AM

Re: nginx try_files & drupal

Igor Sysoev October 08, 2009 08:12AM

Re: nginx try_files & drupal

Alexey V. Karagodov October 08, 2009 03:02PM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 08, 2009 06:22PM

Re: nginx try_files & drupal

Igor Sysoev October 08, 2009 03:24PM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 08, 2009 06:22PM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 01:40AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 02:28AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 02:44AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 03:18AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 03:30AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 04:22AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 04:50AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 05:40AM

Re[2]: nginx try_files & drupal

Denis F. Latypoff October 09, 2009 06:18AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 06:50AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 05:18AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 05:56AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 07:56AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 08:36AM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 09:54AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 10:10AM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 01:44PM

Re[2]: nginx try_files & drupal

Denis F. Latypoff October 09, 2009 02:24PM

Re: nginx try_files & drupal

Igor Sysoev October 09, 2009 02:44PM

Re: nginx try_files & drupal

Vasiliy G Tolstov October 09, 2009 03:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
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