Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Почему могут не работать в ложенные location
- To: nginx-ru@xxxxxxxxx
- Subject: Почему могут не работать в ложенные location
- From: "andrey311" <nginx-forum@xxxxxxxx>
- Date: Sun, 10 Jul 2011 08:42:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=YM/jUCx4sy0qoOIQ9ehkdCrqKaOwq225RwKMWx9P7yU=; b=RxFLaC7mVl3qTS++spHJeyPso9XqI8mNCbl9vfD3QGswhTIotF+hdcagJfYQTY7t48OrCY1KimnYBeOWx1cO8h3yPgBvv8pMYmFa6nQ1POZ7cAbwQpP03jxPcF01YwaQ;
Не работает location "/i". 404 ошибка. Перерыл
всё, что можно, но ни у кого таких
проблем какбуд-то нет. Должно быть
проблема на поверхности, но не пойму
где. nginx версия 1.0.0. Помогите
пожалуйста.
Привожу точный конфиг:
server {
listen 80;
server_name s2.myninja.ru www.s2.myninja.ru;
access_log /home/user/engine-env/logs/access.log;
location / {
root /home/user/engine-env/projects/s2.myninja.ru;
index index.php;
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?q=$1 last;
}
}
location /i {
root /home/user/engine-env/engine/i;
}
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml|html|htm|swf)$ {
access_log off;
expires 30d;
add_header Cache-Control public;
root /home/user/engine-env/projects/s2.myninja.ru;
}
location ~ \.mp4$ {
root /home/user/engine-env/projects/s2.myninja.ru;
mp4;
}
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/home/user/engine-env/projects/s2.myninja.ru$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 2 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
location ~ /\.ht {
deny all;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,212050,212050#msg-212050
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|