The web:link("") gives you back the appropriate application link. It transforms "/test" to "
domain.com/app.lua/test". I think you have used it correctly. Try adding another GET handler for testing:
function test() return "Hello world" end
site:dispatch_get( test, "/test" )
I think it comes down to editing the httpd.conf in way that you can also access
domain.com/app.lua/test instead of only
domain.com/app.lua. Use the above the check your result. I'm not an apache expert but the /var/www/*/*.lua seems strange.
I have something like:
<Directory /var/www/myapp>
<IfModule mod_fcgid.c>
AddHandler fcgid-script .lua
FCGIWrapper "/usr/local/bin/wsapi.fcgi" .lua
...
Good luck.