Source document at: http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
Wiki document (deprecated) at: http://wiki.nginx.org/HttpCoreModule
Read onlyName | Description |
---|
# Assumptions: | |
* Rails 3.2.x | |
* nginx | |
* capistrano deploy | |
* "X-Accel-Mapping header missing" messages in nginx error.log file | |
* You want to serve static files with nginx instead of Rails | |
# nginx configuration: |
.tab-bar { | |
height: 32px; | |
padding: 0; | |
.tab { | |
-webkit-transform: none; | |
top: 1px; | |
left: 2px; | |
line-height: 25px; |
js_include batch-api-min.js; | |
# keyval_zone for APIs where the last portion of the URI is an argument | |
# The key is the portion of the URL before the last part | |
keyval_zone zone=batch_api:64k state=/etc/nginx/state-files/batch-api.json; | |
keyval $uri_prefix $batch_api zone=batch_api; | |
# keyval_zone for APIs where the last portion of the URI is an argument | |
# The key is the URI | |
keyval_zone zone=batch_api2:64k state=/etc/nginx/state-files/batch-api2.json; |
Source document at: http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
Wiki document (deprecated) at: http://wiki.nginx.org/HttpCoreModule
Read onlyName | Description |
---|
// Idiomatic Semaphore Example in Go | |
// Lucas Wagner | |
// Golang has no built-in facility to implement semaphores, so a common design | |
// pattern is to use buffered channels. | |
package main | |
import ( | |
"fmt" |