Skip to content

Commit

Permalink
Initial upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Clyne committed Dec 15, 2010
0 parents commit 451d2ee
Show file tree
Hide file tree
Showing 3 changed files with 816 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 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 changes: 7 additions & 0 deletions 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

0 comments on commit 451d2ee

Please sign in to comment.