|
![]() |
![]() |
![]() |
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.
| |||||||||||||||
|