Welcome! Log In Create A New Profile

Advanced

Проблема при переходе с 0.8.35 на 0.8.53

November 15, 2010 12:39PM
Взял с https://launchpad.net/nginx deb пакет, поставил, демон стартанул, только вот со всеми конфигами при переходах на внутренние страницы с чпу говорит 404...

Ничего вроде сложного, все по манам.. Сейчас нет возможности тестить, откатил на 0.8.35, ибо сервак боевой, помимо блога там комерческие проекты. Вот пример конфига для блога вордпрес:
[code]
server {
listen 80;
server_name blog.halfi.ru;
access_log /var/log/nginx/blog.access.log;
root /var/www/blog;

include /etc/nginx/blog;
}
[/code]
/etc/nginx/blog:
[code]
charset utf-8;

## Default location

location / {
index index.php;
try_files $uri $uri/ @blog;
}

location ~ /\.ht {
deny all;
}


## Images and static content is treated different
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires 30d;
}

## Parse all .php file in the /var/www/mf directory
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/tmp/fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}

location @blog {
fastcgi_pass unix:/tmp/fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root/index.php;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
[/code]
Можно ли на вскидку сказать из-за чего nginx не находит дирректории?
Subject Author Posted

Проблема при переходе с 0.8.35 на 0.8.53

Halfi November 15, 2010 12:39PM

Re: Проблема при переходе с 0.8.35 на 0.8.53

Константин November 15, 2010 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready