ПРОЕКТЫ 


  АРХИВ 


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]

nginx и drupal


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx и drupal
  • From: "KaMaToZzz" <nginx-forum@xxxxxxxx>
  • Date: Sat, 08 Jan 2011 12:21:22 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=/m+pFtNJDi8QOTeGUxeTPYKSOnOylPpUkytMLC/DSNs=; b=Bt3sGaTBhJ/vBV7olgVzrzfpMZBVXS0RZN+aUuBZX3JfwAnwOelMYFqRjYztwAVzYLEJ/QP7L0JMANQr2R7y91KVJQVOnQIkpjIQ37WDyPnkuquc8UX+vuIu1+jdqgDh;

Добрый вечер. Имее nginx-php+fpm ну и друпал
6.20
Некорректно работает mysite.ru/update.php
На третьем шаге перекидывает на
главную страницу с таким url
http://mysite.ru/?op=selection&token=2923a95fd3d56ffb90e59f772155e73b

А должен быть
mysite.ru/update.php?op=selection&token=2923a95fd3d56ffb90e59f772155e73b

И из-за этого обновление невозможно
выполнить.
Подскажите пожалуйста, что необходимо
поправить в конфигах nginx, дабы все
заработало? (для нуба)

cat nginx.conf:
[code]

#######################################################################
#
# This is the main Nginx configuration file.
#
# More information about the configuration options is available on
#   * the English wiki - http://wiki.codemongers.com/Main
#   * the Russian documentation - http://sysoev.ru/nginx/
#
#######################################################################

#----------------------------------------------------------------------
# Main Module - directives that cover basic functionality
#
#   http://wiki.codemongers.com/NginxMainModule
#
#----------------------------------------------------------------------

user              www;
worker_processes  2;
worker_rlimit_nofile 8192;

error_log         /var/log/nginx/error.log;
#error_log        /var/log/nginx/error.log  notice;
#error_log        /var/log/nginx/error.log  info;

pid               /var/run/nginx.pid;

timer_resolution  100ms;

#----------------------------------------------------------------------
# Events Module
#
#   http://wiki.codemongers.com/NginxEventsModule
#
#----------------------------------------------------------------------

events {
    worker_connections  4096;
    use kqueue;
 }

#----------------------------------------------------------------------
# HTTP Core Module
#
#   http://wiki.codemongers.com/NginxHttpCoreModule
#
#----------------------------------------------------------------------

http {
    include       /usr/local/etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local]
$request '
                      '"$status" $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  off;

    sendfile        on;
    #tcp_nopush     on;
    client_max_body_size 10M;

    #keepalive_timeout  0;
    keepalive_timeout  65;
    send_timeout 140;
    client_body_timeout 140;
    client_header_timeout 140;

    gzip  on;
    charset utf8;

    include hosts/fun3.conf;
    include hosts/wp3.conf;
    include hosts/wp-rdirect.conf;
    include hosts/live.conf;
    include hosts/cacti.conf;
    #include hosts/test.conf;
   }

[/code]

Ну и сам конфиг для друпла:
cat fun3.conf

[code]
    server {
        listen 80;
        server_name mysite.ru;
        access_log  /var/log/nginx/host.access.log  main;

        location / {
            root   /www;
            index  index.php;
            if (!-e $request_filename) {
                rewrite  ^(.*)$  /index.php?q=$1  last;
                break;
            }
        }

        error_page  404              /index.php;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ .php$ {
          fastcgi_pass   unix:/tmp/php-fpm.sock;
          fastcgi_index  index.php;

          fastcgi_param  SCRIPT_FILENAME /www$fastcgi_script_name;
          fastcgi_param  QUERY_STRING     $query_string;
          fastcgi_param  REQUEST_METHOD   $request_method;
          fastcgi_param  CONTENT_TYPE     $content_type;
          fastcgi_param  CONTENT_LENGTH   $content_length;
        }
  }

[/code]

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,164567,164567#msg-164567


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.