I'm unable to edit my original post, but the contents of the bottom .conf file had a missing } that I accidentally removed while formatting this post. It should read:
# inside hhvm.conf
location ~ \.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_cache FCGICACHE;
fastcgi_cache_valid 200 302 1h;
fastcgi_cache_valid 301 1h;
fastcgi_cache_valid any 1h;
fastcgi_cache_min_uses 2;
add_header X-FastCGI-Cached $upstream_cache_status;
}
location ~ /purge(/.*) {
fastcgi_cache_purge FCGICACHE $scheme$request_method$host$request_uri;
}
# inside hhvm.conf
location ~ \.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_cache FCGICACHE;
fastcgi_cache_valid 200 302 1h;
fastcgi_cache_valid 301 1h;
fastcgi_cache_valid any 1h;
fastcgi_cache_min_uses 2;
add_header X-FastCGI-Cached $upstream_cache_status;
}
location ~ /purge(/.*) {
fastcgi_cache_purge FCGICACHE $scheme$request_method$host$request_uri;
}