Welcome! Log In Create A New Profile

Advanced

Re: nginx и drupal

vt
January 08, 2011 12:32PM
Мммм....
http://wiki.nginx.org/Drupal ?

On 1/8/2011 8:21 PM, KaMaToZzz wrote:
> Добрый вечер. Имее 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@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx и drupal

sysatrium March 19, 2010 06:17AM

Re: nginx и drupal

pioneer November 12, 2010 08:15PM

Re: nginx и drupal

vt January 08, 2011 12:32PM



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: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready