Permalink
Browse files

Initial upload

  • Loading branch information...
Marcus Clyne
Marcus Clyne committed Dec 15, 2010
0 parents commit 451d2eec9e7435c31ca9edd9df924565aab2cb8a
Showing with 816 additions and 0 deletions.
  1. +45 −0 README
  2. +7 −0 config
  3. +764 −0 ngx_http_set_lang_module.c
45 README
@@ -0,0 +1,45 @@
+Nginx HTTP Set Lang Module
+--------------------------
+
+Description
+-----------
+
+ An Nginx module that provides a variety of ways for setting a variable denoting the
+ langauge that content should be returned in.
+
+
+Methods for setting language variable
+-------------------------------------
+
+ - cookie
+ - URL arguments
+ - Accept-Language header
+ - geoip
+ - host
+ - referer
+ - POST variables (todo)
+
+
+Usage
+-----
+
+ TODO
+
+
+Installation
+------------
+
+ ./configure --add-module=/path/to/ngx_devel_kit --add-module=/path/to/ngx_http_set_lang
+
+
+
+Copyright
+---------
+
+ Marcus Clyne (c) 2010
+
+
+License
+-------
+
+ BSD
7 config
@@ -0,0 +1,7 @@
+ngx_addon_name=ngx_http_set_lang_module
+HTTP_MODULES="$HTTP_MODULES ngx_http_set_lang_module"
+NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_set_lang_module.c"
+
+have=NDK_CONF_FILE . auto/have
+have=NDK_SET_VAR . auto/have
+have=NGX_HTTP_HEADERS . auto/have
Oops, something went wrong.

0 comments on commit 451d2ee

Please sign in to comment.