tags:

views:

39

answers:

0

Hi guys, i'm studying the fastcgi developement kit because i'm writing a new scripting language and i'd like to write a fastcgi version of the interpreter to run scripts as webpages.

I'm using this example from the sdk, located at

/srv/http/bin/echocpp

So, in my httpd.conf file, i have the following lines :

FastCgiServer /srv/http/bin/echocpp -idle-timeout 120 -processes 4
ScriptAlias / /srv/http/bin/echocpp/
...
...
AddHandler fastcgi-script hy

Where 'hy' is the extensions of my scripts.

Then, when i try browse, for instance

http://localhost/~evilsocket/prime.hy

I see all the environment variables as expected from the echo-cpp.cpp programm, except for the SCRIPT_NAME that is empty.

Is there something i'm missing out of this? How am i supposed to obtain the full path of the script to run it inside my fastcgi version of the interpreter?

Thanks