|
<?xml version="1.0" encoding="utf-8"?>
<settings>
<!-- timeouts defined in seconds -->
<!--
Default values in code:
workers-count="500"
pooling-enabled="true"
worker-life-time="300"
keep-alive-timeout = "5"
server-socket-timeout = "900"
command-socket-timeout = "30"
response-buffer-size = "2048576" bytes-->
<server
version = "ahttp 0.1"
port="5555"
workers-count="500"
pooling-enabled="true"
worker-life-time="60"
command-port="5556"
root="root"
keep-alive-enabled = "true"
keep-alive-timeout = "10"
server-socket-timeout = "900"
command-socket-timeout = "30"
response-buffer-size = "2048576"
max-chunk-size = "65535"
directory-config-file="directory.config"
>
<!-- log-level: "Debug", "Info", "Warning", "Error" - if none of them - then debug -->
<log log-level="debug" max-file-size="4194304">
<!-- {app-path} - path to directory where application is located (with trailing slash),
{timestamp} - generated timestamp -->
<path>{app-path}log\server_{timestamp}.log</path>
</log>
<mime-types file="{app-path}mime-types.config" />
<handlers>
<handler name="python_handler" default-ext=".py">
<path>{app-path}python_handler-d.dll</path>
<parameter name="uploads-dir">c:\temp\python_handler\</parameter>
</handler>
</handlers>
</server>
<!-- virtual-path for root: "/"
charset - will be used when FS content is shown -->
<directory name="root"
browsing-enabled="true"
charset="Windows-1251">
<path>d:\work\web\</path>
<default-documents>
<add>index.html</add>
<add>index.htm</add>
<add>main.html</add>
</default-documents>
<!-- ext="*" - will be applied to all requests -->
<!-- ext="." - will be applied to directory/file without extension -->
<handlers>
<register name="python_handler" />
<register name="python_handler" ext=".pyhtml"/>
</handlers>
<!-- Record attributes:
{name} - name of item,
{size} - size of item in kb,
{url} - url to open item
{time} - last modify dat/time of item,
{page-url} - url to current page
{parent-url} - url to parent directory
{files-count} - files count in current directory
{directories-count} - sub-directories count in current directory
{errors-count} - reading errors count
{tab} - will be replaced with '\t'
-->
<header-template>
<html>
<head>
<title>Directory content: {page-url}</title>
<style>
BODY { padding: 10px; margin: 10px; font: 10pt Tahoma, Arial; color: #000;}
H1 {font-size: 12pt; font-weight: bold; }
HR {height:1px; border: 1px solid #333; color: #333;}
TABLE {font-size: 100%;}
TD {padding: 1px 10px 0px 10px; text-align: left; }
</style>
</head>
<body>
<h1>Directory: <i>{page-url}</i></h1>
<hr />
<table border="0" cellpadding="0" cellspacing="0">
</header-template>
<parent-directory-template >
<tr><td colspan="4" style="padding-bottom: 10px;"><a href="{parent-url}">[parent directory]</a></td></tr>
</parent-directory-template>
<directory-template>
<tr>
<td>{time}</td>
<td> &lt;dir&gt; </td>
<td> <img border="0" align="middle" src="/server_data/images/icon_dir.gif"/> </td>
<td> <a href="{url}"> {name}</a> </td>
</tr>
</directory-template>
<virtual-directory-template >
<tr>
<td>{time}</td>
<td> &lt;virtual&gt; </td>
<td> <img border="0" align="middle" src="/server_data/images/icon_virtual_dir.gif"/> </td>
<td><a href="{url}">{name}</a></td>
</tr>
</virtual-directory-template>
<file-template >
<tr>
<td>{time}</td>
<td>{size}</td>
<td> <img border="0" align="middle" src="/server_data/images/icon_file.gif"/> </td>
<td><a href="{url}">{name}</a></td>
</tr>
</file-template>
<footer-template>
</table>
<hr />
Files: {files-count}<br>
Directories: {directories-count}<br>
Reading errors: {errors-count}
<hr />
</body>
</html>
</footer-template>
</directory>
<directory name="server_data"
parent="root">
<virtual-path>server_data</virtual-path>
<path>{app-path}web</path>
</directory>
<directory name="disk_c"
parent="root">
<virtual-path>disk_c</virtual-path>
<path>c:\</path>
</directory>
</settings>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.