hello.

i try to use wsapi.fcgi with apache2 and mod_rewrite and encountered a 
weired problem:

my mod rewrite rule is this:

 RewriteEngine On
 RewriteRule ^/(.*)        /index.lua

i usually use this to redirect everything to a single entry point
in /index.lua, and it works fine if i use this with cgi wrappers like
haserl, and then let the script parse the URL.

however, if i now open an URL like  "mydomain.net/some/webservice" it
does indeed redirect to index.lua , but wsapi tells me:

 /usr/share/lua/5.1/wsapi/common.lua:267: could not find a filename to
 load, check your configuration or URL stack traceback:
        [C]: in function 'error'
        /usr/share/lua/5.1/wsapi/common.lua:267: in function
 'adjust_non_wrapped' /usr/share/lua/5.1/wsapi/common.lua:275: in
 function 'normalize_paths' /usr/share/lua/5.1/wsapi/common.lua:291: in
 function 'find_module' wsapi.fcgi:15: in function 
        (tail call): ?

i call it weired because obviously index.lua (there is no other file
in the root dir)  has been opened by the server. do i need to change
the line

s, e = path_info:find("[^/%.]+%.[^/%.]+", e + 1)

in wsapi/common.lua somehow to make this work?

cheers,

startx


_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to