亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2422 | 回復: 1
打印 上一主題 下一主題

[Web] 匪夷所思的request_filename為空值 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-08-09 03:39 |只看該作者 |倒序瀏覽
匪夷所思的request_filename為空值

centos5
# /usr/local/nginxad/sbin/nginx -V
nginx version: nginx/1.2.1
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
TLS SNI support enabled
configure arguments: --user=www --group=www
--prefix=/usr/local/nginxad
--with-pcre=/usr/local/src/lemppackages/pcre-8.30
--with-http_stub_status_module
--with-http_ssl_module
--with-http_sub_module
--with-md5=/usr/lib
--with-sha1=/usr/lib
--with-http_gzip_static_module
--without-mail_pop3_module
--without-mail_imap_module
--without-mail_smtp_module
--add-module=/usr/local/src/agentzh-memc-nginx-module-4007350
--add-module=/usr/local/src/echo-nginx-module

虛擬主機的配置文件為

    location / {
        #root   /usr/share/nginx/html;
        root   /data/wwwroot/lanops.sns.com;
        index  index.html index.htm index.php;
    }
       
       

    location ~ ^/testxxx/.+\.php$ {
        alias /data/wwwroot/test1/test2/$1;
        rewrite /testxxx/(.+\.php) /$1 break;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
#       fastcgi_param  SCRIPT_FILENAME  /data/wwwroot/test1/test2$fastcgi_script_name;
        include        fastcgi_params;
        echo_after_body "document_root: " $document_root;
        echo_after_body "fastcgi_script_name: " $fastcgi_script_name;
        echo_after_body "uri: " $uri;
        echo_after_body "request_uri: " $request_uri;
        echo_after_body "request_filename: " $request_filename;
        echo_after_body "==========================";
    }
       
        location ~ \.php$ {
                root /data/wwwroot/lanops.snsgame.com;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include        fastcgi_params;
    }
       
# curl http://lanops.snsgame.com/testxxx/t1.php
t1.php=============這個就是t1.php的內容。解析完全正確
document_root:  /data/wwwroot/test1/test2/t1.php
fastcgi_script_name:  /t1.php
uri:  /t1.php
request_uri:  /testxxx/t1.php
request_filename:  
==========================
求問:為什么request_filename為空。但是內容還能被解析出來呢?
難道 SCRIPT_FILENAME的值才是要訪問的實際文件么??
為什么 document_root和fastcgi_script_name拼接出來的值居然是/data/wwwroot/test1/test2/t1.php??

論壇徽章:
0
2 [報告]
發(fā)表于 2012-08-09 03:41 |只看該作者
我在考慮,莫非是echo模塊和1.2.11不是很兼容?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP