All pastes #717290 Raw Edit

Miscellany

public text v1 · immutable
#717290 ·published 2007-09-27 14:56 UTC
rendered paste body
[root@localhost cgi-bin]# ./hello_world.cgi
Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"><head><title>Untitled Document</title>
</head><body><p>Hello, world!</p></body></html>[root@localhost cgi-bin]#


go to web site... http://devel.canvas-photos.co.uk/cgi-bin/hello_world.cgi


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@devel.canvas-photos.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.52 (Red Hat) Server at devel.canvas-photos.co.uk Port 80


go to error_log....

 Apache Error Log  	
	
[Thu Sep 27 15:55:48 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:55:48 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:55:48 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:55:47 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:55:11 2007] [error] [client 24.245.75.91] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:52:45 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:52:44 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:52:34 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi
[Thu Sep 27 15:45:42 2007] [error] [client 81.86.45.98] Premature end of script headers: hello_world.cgi