Welcome! Log In Create A New Profile


$body_bytes_sent = 0

Posted by stopka 
$body_bytes_sent = 0
April 29, 2011 08:04AM
Стоит nginx 0.8.53 и php-fpm 5.3.6
Конфиг nginx (Весь кофиг не буду приводить, приведу отрывок):

log_format main
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent --->$body_bytes_sent<--- '
'"$http_referer" "$http_user_agent" '

server {
listen 80;
server_name server.local;

access_log /www/server/www/logs/access.log main;
error_log /www/server/www/logs/error.log;

location ~* \.php$ {
root /www/server/www/htdocs/;

fastcgi_pass unix:/var/run/php-fpm.socket;

fastcgi_param SCRIPT_FILENAME /www/server/www/htdocs$fastcgi_script_name;
fastcgi_param HTTP_X_REAL_IP $remote_addr;
fastcgi_param BBBBBBB $body_bytes_sent;
include /etc/nginx/fastcgi_params;

location ~ /.svn/ {
deny all;

Все работает, но есть один нюанс. В access логах вижу значения $body_bytes_sent. Вполне себе корректное, а в PHP в $_SERVER['BBBBBBB'] вижу 0. С чем может быть это связано?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready