ПРОЕКТЫ 


  АРХИВ 


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]

location


  • To: nginx-ru@xxxxxxxxx
  • Subject: location
  • From: "VadimK" <nginx-forum@xxxxxxxx>
  • Date: Wed, 30 Jun 2010 10:02:46 -0400
  • 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=foU10UEYX0Q+jb06NXVW6a4UrFTn4yZsAMq7/k/n2Y4=; b=jU6W3akNPQ/1yAS9pZtWUU6GvCzDWPZBj39yUB4VO67J4GYESxHfwrZVr2GToCrGUJz/gQOaiIU18YFT+WnwjHhFTxV1iIEAKgWVLOYwPhO2K5LOCf7bzvdFOaUXwncs;

Есть конфиг, в нем указанно следующее
[code]
        server {
                listen 80;
                server_name ~^(.*)\.(.*\..*)\.x$;
                set $x_document_root w:/www/$1.$2/;
                
                error_log  logs/error.log  debug;
                access_log logs/access.log  main;               
                index   index.php index.html;

                location ~ ^/asm/(.*\.php)$ {
                    fastcgi_pass   127.0.0.1:521;
                    fastcgi_param  SCRIPT_FILENAME 
w:/www/core/$fastcgi_script_name;
                    include        fastcgi_params;
                    fastcgi_param DOCUMENT_ROOT $x_document_root;
                }
                
                location ~ ^/asm/ {
                        alias w:/www/core/asm/;
                }               
                
        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:521;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME 
$x_document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
        }
[/code]

Т.е. по правилам, если я запрашиваю
/asm/js/jquery/jquery.tablednd.js , то должна
выполниться часть 
[code]
                location ~ ^/asm/ {
                        alias w:/www/core/asm/;
                }
[/code]
Оно в общем так и происходит, но всегда
теряется первый символ в адресе
запрашиваемой страницы. 

[quote]
2010/06/30 14:20:19 [debug] 1740#3168: *15 http request line: "GET
/asm/js/jquery/jquery.tablednd.js HTTP/1.1"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http uri:
"/asm/js/jquery/jquery.tablednd.js"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http args: ""
2010/06/30 14:20:19 [debug] 1740#3168: *15 http exten: "js"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http process request header
line
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Host:
dev.phpdevs.com.x"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6)
Gecko/20100625 vdebug Firefox/3.6.6 ( .NET CLR 3.5.30729)"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Accept: */*"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header:
"Accept-Language: en-us,en;q=0.5"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header:
"Accept-Encoding: gzip,deflate"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Keep-Alive:
115"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Connection:
keep-alive"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Referer:
http://dev.phpdevs.com.x/asm/";
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Cookie:
acore=member_-486405848; PHPSESSID=004dekirk830ci7remcn14amk3"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header: "Cache-Control:
max-age=0"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http header done
2010/06/30 14:20:19 [debug] 1740#3168: *15 event timer del: 392:
2291547416
2010/06/30 14:20:19 [debug] 1740#3168: *15 generic phase: 0
2010/06/30 14:20:19 [debug] 1740#3168: *15 rewrite phase: 1
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script complex value
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script copy: "w:/www/"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script capture: "dev"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script copy: "."
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script capture:
"phpdevs.com"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script copy: "/"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http script set
$x_document_root
2010/06/30 14:20:19 [debug] 1740#3168: *15 test location: ~
"^/asm/(.*\.php)$"
2010/06/30 14:20:19 [debug] 1740#3168: *15 test location: ~ "^/asm/"
2010/06/30 14:20:19 [debug] 1740#3168: *15 using configuration "^/asm/"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http cl:-1 max:1048576
2010/06/30 14:20:19 [debug] 1740#3168: *15 rewrite phase: 3
2010/06/30 14:20:19 [debug] 1740#3168: *15 post rewrite phase: 4
2010/06/30 14:20:19 [debug] 1740#3168: *15 generic phase: 5
2010/06/30 14:20:19 [debug] 1740#3168: *15 generic phase: 6
2010/06/30 14:20:19 [debug] 1740#3168: *15 generic phase: 7
2010/06/30 14:20:19 [debug] 1740#3168: *15 access phase: 8
2010/06/30 14:20:19 [debug] 1740#3168: *15 access phase: 9
2010/06/30 14:20:19 [debug] 1740#3168: *15 post access phase: 10
2010/06/30 14:20:19 [debug] 1740#3168: *15 content phase: 11
2010/06/30 14:20:19 [debug] 1740#3168: *15 content phase: 12
2010/06/30 14:20:19 [debug] 1740#3168: *15 content phase: 13
2010/06/30 14:20:19 [debug] 1740#3168: *15 content phase: 14
2010/06/30 14:20:19 [debug] 1740#3168: *15 content phase: 15
2010/06/30 14:20:19 [debug] 1740#3168: *15 content phase: 16
2010/06/30 14:20:19 [debug] 1740#3168: *15 http filename:
"w:/www/core/asm/s/jquery/jquery.tablednd.js"
2010/06/30 14:20:19 [debug] 1740#3168: *15 add cleanup: 00A1E83C
2010/06/30 14:20:19 [error] 1740#3168: *15 CreateFile()
"w:/www/core/asm/s/jquery/jquery.tablednd.js" failed (3: The system
cannot find the path specified), client: 127.0.0.1, server:
~^(.*)\.(.*\..*)\.x$, request: "GET /asm/js/jquery/jquery.tablednd.js
HTTP/1.1", host: "dev.phpdevs.com.x", referrer:
"http://dev.phpdevs.com.x/asm/";
2010/06/30 14:20:19 [debug] 1740#3168: *15 http finalize request: 404,
"/asm/js/jquery/jquery.tablednd.js?" a:1, c:1
2010/06/30 14:20:19 [debug] 1740#3168: *15 http special response: 404,
"/asm/js/jquery/jquery.tablednd.js?"
2010/06/30 14:20:19 [debug] 1740#3168: *15 http set discard body
2010/06/30 14:20:19 [debug] 1740#3168: *15 HTTP/1.1 404 Not Found
[/quote]
Т.е.
w:/www/core/asm[b]/js/[/b]jquery/jquery.tablednd.js - должно
быть так.
w:/www/core/asm[b]/s/[/b]jquery/jquery.tablednd.js - а
получается так.

или другой путь:
w:/www/core/asm[b]/css/[/b]jquery-ui.css - вместо этого
получаю
w:/www/core/asm[b]/ss/[/b]jquery-ui.css - вот это.

использую nginx/Windows-0.8.42.

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


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


 




Copyright © Lexa Software, 1996-2009.