Index: [Article Count Order] [Thread]

Date:  Mon, 04 Dec 2006 16:23:44 +0900
From:  Naotaka HOTTA <fukuzo (at mark) cybertron.co.jp>
Subject:  [coba-e:08065] running python CGI script on BQ
To:  coba-e (at mark) bluequartz.org
Message-Id:  <4573CD00.4050201 (at mark) cybertron.co.jp>
X-Mail-Count: 08065

Hi Blues

I am having difficulty running python CGI script on BlueQuartz.

I am keep getting "500-internal-server-error.html" message when I run
script blow.

Dose anyone have idea where should I modify in httpd.conf to let the
script show HTML?


-----python CGI testing script

#! /usr/bin/env python
# -*- coding: utf-8 -*-

import cgi
import cgitb; cgitb.enable()

html = '''Content-Type: text/html

<html>
<head>
  <title>test.cgi</title>
</head>
<body>
 <h1>test of print test on web</h1>
 <a href="http://www.google.com">return</a>
</body>
</html>
'''

print html
-- 
Jay HOTTA