Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Проблема при переходе с 0.8. 35 на 0.8.53
- To: nginx-ru@xxxxxxxxx
- Subject: Проблема при переходе с 0.8. 35 на 0.8.53
- From: "Halfi" <nginx-forum@xxxxxxxx>
- Date: Mon, 15 Nov 2010 12:39:48 -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=Sut5Cc4iX4ZLkGjRRHvRvpJIlmdVlqMywb80vSycZB4=; b=dQ6be3GOdnEgy42Nv2gEvmpNT7oZZhPtdft1N9nW0z0/CxYCAxkoM1TLsEBKk1LUmxFeWof0rQ5xJvnA5Dic6cniiY/QlDnBNuSx7aS6/odZFoT61CWPcWBsWLTuVMdC;
Взял с 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 не находит дирректории?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,150954,150954#msg-150954
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|