Skip to content

Instantly share code, notes, and snippets.

@vivekagr
Created December 17, 2015 01:09
Show Gist options
  • Select an option

  • Save vivekagr/6494fa54bbbb76ca9e4a to your computer and use it in GitHub Desktop.

Select an option

Save vivekagr/6494fa54bbbb76ca9e4a to your computer and use it in GitHub Desktop.

Revisions

  1. vivekagr created this gist Dec 17, 2015.
    16 changes: 16 additions & 0 deletions test.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    server {
    listen 80 default_server;

    root /home/ubuntu/test;
    index index.html index.htm;

    error_log /home/ubuntu/test/error.log;
    access_log /home/ubuntu/test/access.log;

    location / {
    set $lang_sup "en,fr";
    lua_code_cache off;
    set_by_lua_file $lang_accept /etc/nginx/lang.lua $lang_sup;
    root /home/ubuntu/test/$lang_accept;
    }
    }