Closed GoogleCodeExporter closed 9 years ago
Original comment by ondrej.zara
on 14 Nov 2009 at 2:47
This stuff seems to be very complex. With the following Apache config:
ScriptAlias /v8cgi/ /path/to/v8cgi/directory/
AddHandler v8cgi-handler .ssjs
Action v8cgi-handler /v8cgi/v8cgi
A request to "/index.ssjs" has these env vars:
PATH_TRANSLATED: /physical/path/to/webserver/root/index.ssjs
SCRIPT_FILENAME: /path/to/v8cgi/directory/v8cgi
In this scenario, PATH_TRANSLATED should be therefore preferred...
Original comment by ondrej.zara
on 15 Nov 2009 at 4:48
Sorry, I should have said I used mod_v8cgi and did not use either external v8cgi
executable. Where to get the path does depend on whether it runs as a module
or as a
handler.
Original comment by shinydis...@gmail.com
on 15 Nov 2009 at 8:30
Aha, ok. Please try the latest SVN revision; the code handling this was
significantly
changed and Apache module does not use PATH_TRANSLATED nor SCRIPT_FILENAME
anymore.
This will be include in 0.7.5, which is going to be released in few days...
Original comment by ondrej.zara
on 15 Nov 2009 at 10:00
mod_v8cgi from the trunk works properly... many thanks!
Original comment by shinydis...@gmail.com
on 15 Nov 2009 at 10:13
Original comment by ondrej.zara
on 16 Nov 2009 at 6:50
Original issue reported on code.google.com by
shinydis...@gmail.com
on 14 Nov 2009 at 9:57