Last active
August 29, 2015 14:11
-
-
Save FireyFly/d4676e9e03cd187ab482 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- for testing | |
function server(url) | |
return function (tbl) | |
print(url) | |
for k,v in pairs(tbl) do | |
print(k,v) | |
end | |
end | |
end | |
--------------------------------------------- | |
server 'http://git.reaver-project.org:80' { | |
root = '/var/www/git/static'; | |
proxy_redirect_if_not_exists = true; | |
proxy_redirect = 'guriwesu1.griwes.info:8084'; | |
} | |
-- or | |
server 'http://git.reaver-project.org:80' { | |
root = '/var/www/git/static'; | |
proxy = { | |
redirect_if_not_exists = true; | |
redirect = 'guriwesu1.griwes.info:8084'; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment