Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Coding/Programming Interviews:Active Template Library (ATL)ActiveXApplication DeveloperArtificial intelligenceAssemblyAssociate Software EngineerAWKAWTC ProgrammingC++ ProgrammingCGI PerlCGI ProgrammingCMMICobolCritical ReasoningData Structures TreesDCOM COMDelphiDTDE4XExtensible Stylesheet Language (XSL)FortranFull-Stack DeveloperHaskellHTML DOMILUIPhone DeveloperJasper Reports DeveloperJava DeveloperLisp ProgrammingLotus NotesMicrosoft Foundation Class (MFC)Mobile DeveloperMVC DeveloperNode.jsOOPPascalPerl ProgrammingPHPPHP DeveloperProgrammingProgramming AlgorithmsProgramming ConceptsPythonRubyRuby on RailsRuby on Rails DeveloperSenior Front End DeveloperSenior Software DeveloperSignature ProgramSOASocket ProgrammingSoftware Development EngineerSoftware engineeringSr. PHP ProgrammerStack And QueueSTLSwift DeveloperTCL (Tool Command Language)Team Leader Android DeveloperUMLUnity 2D Games DeveloperUnity 3D DeveloperUnity DeveloperVBA (Visual Basic for Applications)Visual Basic (VB)Visual C++Web DevelopmentWin32APIWindows ProgramingWordPress DevelopmentWSDLXFormsXHTMLXLinkXMLXPathXQueryXSL-FOXSLT
Copyright © 2018. All Rights Reserved
CGI Programming Interview Question:
How do I launch a program (.exe) that is located on the Server from a Web page?
Submitted by: AdministratorYou need to configure the server to recognise .exe files as cgi, then you just point your browser to the URL as normal..
Here is the answer for Apache, the most popular server on the internet.
Edit the file [srm.conf] to contain, either:
AddHandler cgi-script .exe
or:
ScriptAlias /cgi-bin/ /some/real/path/to/your/cgi_s/
In both cases, you also need to check the [access.conf] file, to make sure that CGIs are "allowed" in those directories. eg...
<Directory /some/real/path/to/your/cgi_s>
AllowOverride None
Options ExecCGI
</Directory>
The scriptalias is the prefered and safest way to do this, as it is easier to manage the access rights on the cgi-bin. That way only trusted users can publish executables, while still allowing the static content of the site to be updated by mortals that are prone to accidents.
Submitted by: Administrator
Here is the answer for Apache, the most popular server on the internet.
Edit the file [srm.conf] to contain, either:
AddHandler cgi-script .exe
or:
ScriptAlias /cgi-bin/ /some/real/path/to/your/cgi_s/
In both cases, you also need to check the [access.conf] file, to make sure that CGIs are "allowed" in those directories. eg...
<Directory /some/real/path/to/your/cgi_s>
AllowOverride None
Options ExecCGI
</Directory>
The scriptalias is the prefered and safest way to do this, as it is easier to manage the access rights on the cgi-bin. That way only trusted users can publish executables, while still allowing the static content of the site to be updated by mortals that are prone to accidents.
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.