Welcome! Log In Create A New Profile

Advanced

Re: nginx try_files & drupal

October 08, 2009 04:24AM
On Thu, Oct 08, 2009 at 11:47:34AM +0400, Vasiliy G Tolstov wrote:

> В Чтв, 08/10/2009 в 11:01 +0400, Igor Sysoev пишет:
> > On Tue, Sep 29, 2009 at 05:36:52PM +0400, Vasiliy G Tolstov wrote:
> >
> > > Я уже задавал вопрос по поводу nginx (try_files) и drupal, а именно
> > > почему ссылка с отчеты->источники посетителей->последнее посещение
> > > (сортирует по последнему посещения) не работала в варианте, который
> > > фигурирует на странице
> > > http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#try_files
> > >
> > > Опытным путем выяснил, чтобы заставить ссылку работать надо сделать
> > >
> > > location / {
> > > try_files $uri $uri/ @drupal;
> > > }
> > >
> > > location ~ \.php$ {
> > > try_files $uri @drupal;
> > > fastcgi_pass unix:/var/run/php/selfip.ru;
> > > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
> > > include /etc/nginx/fastcgi_params;
> > > }
> > >
> > > location @drupal {
> > > rewrite ^/(.*)$ /index.php?q=$1 last;
> > > }
> > >
> > >
> > > У меня включены чисты ссылки если что, я дело явно не в том, в каком
> > > порядке пердаются fast_cgi параметры.
> > > Как видно из моего варианта, в секции @drupal отсутсвует проксирование
> > > на бекенд.
> > > Вопрос разбирающимся в try_files - на сколько корректне данный мною
> > > вариант?
> >
> > Скорее всего, нужно из /etc/nginx/fastcgi_params убрать
> > fastcgi_param QUERY_STRING $query_string;
> >
> > иначе этот парметр перебивает
> > fastcgi_param QUERY_STRING q=$uri&$args;
> >
> >
>
> Тогда у меня почему-то выдается белая страница (в логах 404 ошибка)
> 79.142.88.58 - - [08/Oct/2009:11:45:17 +0400] GET /admin/reports
> HTTP/1.1 "404" 31 "http://selfip.ru/" "Mozilla/5.0 (X11; U; Linux i686;
> en-US; rv:1.9.1.3) G
> ecko/20090918 Gentoo Firefox/3.5.3" "-" "/admin/reports?-" 0.000 0.000

Можно сделать отладочный лог ?


--
Игорь Сысоев
http://sysoev.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: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready