Welcome! Log In Create A New Profile

Advanced

Upstream_cache_status -> Return ' - '

Posted by bgoh 
Upstream_cache_status -> Return ' - '
May 30, 2013 05:35AM
Hi, I have 2 version of Nginx running ; 1.2.1 and 1.4.1. Basically 1.4.1 is just newly installed and copy all configuration files over.
It works perfectly fine. Just one thing I notice that the upstream_cache_status doesn't give response like "HIT", "MISS" but rather "-".
I have my variable configured under HTTP which work for 1.2.1. Any idea?

##### My log format #######
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'## $upstream_cache_status ## '
'Cache-Control:$upstream_http_cache_control , '
'Expires: $upstream_http_expires';
##########################
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
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