how do i use CSCRIPT.EXE (console WSH) for cgi?

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
b123
-


Joined: 12 Oct 2004
Posts: 9

PostPosted: Wed Feb 02, 2005 5:30 am    Post subject: how do i use CSCRIPT.EXE (console WSH) for cgi? Reply with quote

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 View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Wed Feb 02, 2005 11:37 pm    Post subject: Re: how do i use CSCRIPT.EXE (console WSH) for cgi? Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group