Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: 500 Internal server error

by sundialsvc4 (Abbot)
on Feb 06, 2014 at 21:38 UTC ( #1073769=note: print w/ replies, xml ) Need Help??


in reply to 500 Internal server error

Here’s the skinny on this one:   Apache has been configured to believe that anything which is sent to <Location /cgi-bin/> corresponds to the name of a file that it should execute, in order to return to you the output from that file being executed.   (You have not specified a Handler ...)   Which is exactly what it is trying to do.   It found a file by that name at that location, but of course it is not executable.   So, Apache throws up its hands.

What you need to do is to tell Apache, say, that <Location /cgi-bin/Output/Waybill/> should cause a particular Handler, not a file in this location, to be executed.   Upon recognizing this pattern, Apache will (maybe) launch the Handler, and pass the URL-string as input to it.   That script which will be responsible for extracting whatever parameters from it and carrying-out the request.

An elementary Apache-configuration problem ... and not Perl-specific ... but, confusing nonetheless.


Comment on Re: 500 Internal server error
Replies are listed 'Best First'.
Re^2: 500 Internal server error
by Anonymous Monk on Mar 09, 2014 at 19:30 UTC
    in c++ the solution is:
    int main(){
    printf("Content-type: text/html\n\n");

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1073769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2015-07-31 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls