Forum Moderators: phranque

Message Too Old, No Replies

apache application extension mapping?

         

cpes

6:22 pm on May 21, 2004 (gmt 0)



microsoft IIS has an option for appliaction extension mapping. is it possible to do something similar in apache? i'd like to execute .php files in one of my virualhost with my own web.exe application (not php.exe). is it possible to do that in a simple way? or do i need to write new apache module and then add handler and ...?

thank you for any advices.

gergoe

11:33 pm on May 21, 2004 (gmt 0)

10+ Year Member



If your executable is a CGI like binary, so it is communicating with its caller application via the stdin and stdout, then it is possible. First you'll need to put your executable available with the ScripAlias directive, and then you'll need to map any extension or a mime type to this aliased (lets say /webproc/web.exe) cgi interpter with the Action directive. See [httpd.apache.org...] for more details, or you can check out the php documentation on how to install php on apache in cgi mode. there might be some more way to make this (one of them is to make a module for it), but it might be possible by combining something (mod_asis?) with mod_rewrite. Try to tell more about this application, could be that someone already used it.