Skip to content

Commit

Permalink
fix(nginx): Make filename always traceback to the index.lua call
Browse files Browse the repository at this point in the history
  • Loading branch information
Etiene committed Oct 12, 2016
1 parent 89656ff commit 785572c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions rockspecs/remy-0.2.14-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package = "remy"
version = "0.2.14-1"
source = {
url = "git://github.com/sailorproject/remy",
tag = "v0.2.14-alpha"
}
description = {
summary = "An abstraction of web servers supporting Lua",
detailed = [[
Remy (the R emulator) is a simple mod_lua emulator, allowing to run web applications built for mod_lua in alternative environments that allow to run server-side Lua code
]],
license = "MIT"
}
dependencies = {
}
build = {
type = "builtin",
modules = {
remy = "src/remy.lua",
['remy.cgilua'] = "src/remy/cgilua.lua",
['remy.mod_magnet'] = "src/remy/mod_magnet.lua",
['remy.mod_plua'] = "src/remy/mod_plua.lua",
['remy.nginx'] = "src/remy/nginx.lua",
['remy.lwan'] = "src/remy/lwan.lua",
['remy.nginx'] = "src/remy/nginx.lua",
['remy.file_obj'] = "src/remy/file_obj.lua",
}
}
2 changes: 1 addition & 1 deletion src/remy/nginx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ local M = {

function M.init()
local r = request
local filename = ngx.var.request_filename
local filename = debug.getinfo(4).source
local uri = ngx.var.uri
apache2.version = M.mode.."/"..ngx.var.nginx_version
r = remy.loadrequestrec(r)
Expand Down

0 comments on commit 785572c

Please sign in to comment.