Hello World
If the next script is saved as hello.py in the /dir/path directory under the document root then we can execute it with:
http://my_site.tld/dir/path/hello.py or
http://my_site.tld/dir/path/hello
def index(): s = """\ <html> <body> <h2>Hello World!</h2> </body> </html> """ return s
The document root is the default directory where Apache looks for the requested files. Find out what it is looking for the DocumentRoot directive in the httpd.conf file.
The /dir/path is the path to the directory configured to be handled by the Publisher.