spyce
home
license
community
download
examples
resources
wishlist
contrib (@sf)
documentation
intro
lang
runtime
modules
tags
install
exits
sourceforge
statistics
freshmeat

transparent transparent transparent
Documentation - Runtime
[[ Spyce ]]
Python Server Pages
by Rimon Barr

Prev: 3.6.9 - globals Up: 3.6 - Configuration Next: 3.7 - Programmatic Interface

3.6.10. www

The www section defines values for the built-in Spyce webserver.

The root option defines the root directory from which all requests are served. By default, this is the current directory. It may be overridden on the command-line.

The port option defines the port at which the web server will listen. By default, this is port 80, the regular HTTP port. It may be overridden using the -p command-line switch.

The mime option is a comma-separated list of files that define mime-types for common file extensions. The files should be in the standard Apache format. By default, the Spyce engine will read a file called spyce.mime in from the installation directory.

The ext_ and ext_foo (where foo can be replaced by any extension) define the handler mapping. The legitimate values are: spyce and dump. The spyce handler processes the file at the requested path as a spyce script. The dump handler transfers the file at the requested path verbatim, using the appropriate "Content-type" header, if it is known. ext_foo option defines a mapping for a file that ends with foo. The ext_ option defines the default handler. By default, all files ending with .spy are processed by the spyce handler, and all other files are processed using the dump handler.


Prev: 3.6.9 - globals Up: 3.6 - Configuration Next: 3.7 - Programmatic Interface


© 2002 Rimon Barr
email: rimon AT acm DOT org
Spyce Powered SourceForge Logo [[ Spyce ]]
Python Server Pages
version 1.3.10