This file is saved as server_info.cgi and put in cgi-bin directory under the path "C:\Program Files\Apache Group\Apache2\cgi-bin" and this path is configured in httpd.conf file in apache server under the scriptAlias parameter.print << END_OF_HTML; Content-type: text/html; <HTML> <head> <title>About this server</title> </head> <body> <h1>About this server</h1> <hr> <pre> server name : $ENV{SERVER_NAME} Listening on port : $ENV{SERVER_PORT} Server Software : $ENV{SERVER_SOFTWARE} Server Protocol : $ENV{SERVER_PROTOCOL} CGI Version : $ENV{GATEWAY_INTERFACE} </pre> <hr> </body> </html> END_OF_HTML
When I send a request "http://localhost/cgi-bin/server_info.cgi" I get the error message "500 Internal Server Error". So whats wrong in here ?
In reply to CGI script gives "internal server error" by manish.rathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |