PDA

View Full Version : how to "translate" addhandler / action from apache


ts77
04-09-2005, 03:45 PM
Hi there,

any idea how I can translate that part from my apache-config
to a part in litespeed?

AddHandler prg .prg
Action prg /cgi-tdb/bin/tdbengine

I'd really appreciate any ideas.


thanks.

mistwang
04-11-2005, 02:56 PM
Right now there is no direct translation for "action" directive like that, we will add configuration like that later, however, I think you can archive the same effect using URL rewrite now. :-)

Make sure /cgi-tdb/bin/tdbengine is configured to serve as CGI, then rewrite all requests to ".prg" files to URI "/cgi-tdb/bin/tdbengine" and add required environment variables "PATH_INFO" and "PATH_TRANSLATED".

I did not try, but I think it should work. ;-)