Welcome! Log In Create A New Profile

Advanced

возврат 404 полученного от fastcgi

Volodymyr Kostyrko
July 28, 2010 11:30AM
Чего-то я не понимаю.

index.php:
<?php
header('HTTP/1.0 404 Dead beef')
?>

nginx.conf:
location ~ .*\.php$ {
include /usr/local/etc/nginx/fastcgi_params;
fastcgi_pass unix:/tmp/.fastcgi.php.user/socket;
fastcgi_param SCRIPT_FILENAME /home/www$fastcgi_script_name;
}

> fetch -vvo- http://somesite/index.php
scheme: [http]
user: []
password: []
host: [somesite]
port: [0]
document: [/index.php]
---> somesite:80
looking up somesite
connecting to somesite:80
requesting http://somesite/index.php
>>> GET /index.php HTTP/1.1
>>> Host: somesite
>>> User-Agent: fetch libfetch/2.0
>>> Connection: close
>>>
<<< HTTP/1.1 200 OK
<<< Server: nginx/0.7.67
<<< Date: Wed, 28 Jul 2010 15:24:18 GMT
<<< Content-Type: text/html
<<< Transfer-Encoding: chunked
<<< Connection: close
<<< X-Powered-By: PHP/5.3.2
<<<
offset 0, length -1, size -1, clength -1
- 0 B 0 Bps<<< b
http_new_chunk(): new chunk: 11 (11)
<<< 0
http_new_chunk(): end of last chunk
Dead beef.
- 11 B 19 kBps

При этом:

> php-cgi < index.php
HTTP/1.0 404 Dead beef.
X-Powered-By: PHP/5.3.2
Content-type: text/html

Dead beef.

То ли лыжи не едут...

> uname -a
FreeBSD somesite 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sat Jul 17 10:53:12
EEST 2010 arcade@somesite:/usr/obj/usr/src/sys/MINIMAL_8 amd64

--
Sphinx of black quartz judge my vow.


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

возврат 404 полученного от fastcgi

Volodymyr Kostyrko July 28, 2010 11:30AM

Re: возврат 404 полученного от fastcgi

Igor Sysoev July 28, 2010 12:38PM

Re: возврат 404 полученного от fastcgi

Volodymyr Kostyrko July 29, 2010 01:22AM

Re: возврат 404 полученного от fastcgi

Volodymyr Kostyrko July 29, 2010 05:04AM

Re: возврат 404 полученного от fastcgi

Igor Sysoev July 29, 2010 05:08AM

Re: возврат 404 полученного от fastcgi

Volodymyr Kostyrko July 29, 2010 09:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready