View previous topic :: View next topic |
Author |
Message |
b123 -
Joined: 12 Oct 2004 Posts: 9
|
Posted: Wed Feb 02, 2005 5:30 am Post subject: how do i use CSCRIPT.EXE (console WSH) for cgi? |
|
|
Is it possible to use CSCRIPT.EXE (WSH console interpreter) for CGIs?
I got a 500 Internal Server Error when i tried to specify CSCRIPT as a CGI Interpreter. I also tried use a BAT file:
Code: | @%windir%\system32\cscript %1 //nologo |
as an interpreter that simply ran CSCRIPT, and it for some reason just dumped the script file's contents.
How do I get this to work? |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1300
|
Posted: Wed Feb 02, 2005 11:37 pm Post subject: Re: how do i use CSCRIPT.EXE (console WSH) for cgi? |
|
|
b123,
Open a command line window and execute:
Code: | cscript //nologo //s |
This will save the //nologo setting for all your future uses.
Now, in Abyss Web Server console, go to the CGI Parameters and declare
cscript as a CGI Interpreter and associate with extension vbs. You can
disable "Resolve Interpreter using Windows Registry" with these settings
(set it to "No").
When you use IE, you may need to add a ? sign at the end of URLs (for example instead of http://yoursite/test.vbs, you should use http://yoursite/test.vbs? ). The explanation is simple: IE tries to be smart and prompts a download box because it finds vbs as the extension without even waiting for the server to send the actual file type. In other browsers this isn't needed.
If you have any problem, please send your abyss.conf file to support@aprelium.com as well as your script. |
|
Back to top |
|
|
|