TPerry
Well-known member
I'm just now getting this error in my error.log. It started after installing the latest sitemap add on.
I have this set in my domains nginx vhost config file
and this set in config.php for XenForo
Any ideas on why I keep getting the error?
I may have figured it out - but if one of the local nginx guru's would confirm I would appreciate it.
I had to change the vhost config file from the above example to
and I am no longer getting the error.
Code:
2013/04/10 14:02:03 [warn] 14553#0: *1363 using uninitialized "xf_cache_key" variable, client: 157.56.92.161, server: twowheeldemon.com, request: "GET /robots.txt HTTP/1.1", host: "twowheeldemon.com"
I have this set in my domains nginx vhost config file
Code:
set $xf_cache_key "$host$cookie_xf_session$cookie_xf_fbUid$request_method$uri$args";
fastcgi_cache twowheel;
fastcgi_cache_key $xf_cache_key;
add_header XF-Cache-Status $upstream_cache_status;
and this set in config.php for XenForo
Code:
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
I may have figured it out - but if one of the local nginx guru's would confirm I would appreciate it.
I had to change the vhost config file from the above example to
Code:
fastcgi_cache twowheel;
fastcgi_cache_key $xf_cache_key;
add_header XF-Cache-Status $upstream_cache_status;
set $xf_cache_key "$host$cookie_xf_session$cookie_xf_fbUid$request_method$uri$args";