<?xml version="1.0" encoding="UTF-8"?>
<httpServerConfig>
    <serverName>lshttpd</serverName>
    <adminEmails></adminEmails>
    <autoRestart>1</autoRestart>
    <user>nobody</user>
    <group>nobody</group>
    <mime>$SERVER_ROOT/conf/mime.properties</mime>
    <showVersionNumber>0</showVersionNumber>

    <adminRoot>$SERVER_ROOT/admin/</adminRoot>
    <swappingDir>/tmp/lshttpd/swap</swappingDir>
    <listenerList>
        <listener>
            <name>Default</name>
            <address>*:</address>
            <secure>0</secure>
            <vhostMapList>
                <vhostMap>
                    <vhost>Example</vhost>
                    <domain>*</domain>
                </vhostMap>
            </vhostMapList>
        </listener>
    </listenerList>
    <virtualHostList>
        <virtualHost>
            <name>Example</name>
            <vhRoot>$SERVER_ROOT/DEFAULT/</vhRoot>
            <configFile>$VH_ROOT/conf/vhconf.xml</configFile>
            <followSymbolLink>1</followSymbolLink>
            <enableScript>1</enableScript>
        </virtualHost>
    </virtualHostList>
<!--
    <extProcessorList>
        <extProcessor>
            <name>phpFcgi</name>
            <address>localhost:5201</address>
            <type>fcgi</type>
            <maxConns>20</maxConns>
            <autoStart>1</autoStart>
            <env>PHP_FCGI_CHILDREN=20</env>
            <backlog>20</backlog>
            <path>$SERVER_ROOT/fcgi-bin/php</path>
            <instances>1</instances>
        </extProcessor>
    </extProcessorList>
    <scriptHandlerList>
      <scriptHandler>
        <suffix>php</suffix>
            <type>fcgi</type>
            <handler>phpFcgi</handler>
      </scriptHandler>
    </scriptHandlerList>
-->
    <tuning>
        <maxConnections>10000</maxConnections>
        <maxSSLConnections>5000</maxSSLConnections>
        <connTimeout>30</connTimeout>
        <maxKeepAliveReq>10000</maxKeepAliveReq>
        <keepAliveTimeout>15</keepAliveTimeout>
        <sndBufSize>65535</sndBufSize>
        <rcvBufSize>0</rcvBufSize>
        <maxReqURLLen>2048</maxReqURLLen>
        <maxReqHeaderSize>3096</maxReqHeaderSize>
        <maxReqBodySize>10M</maxReqBodySize>
        <maxDynRespSize>1m</maxDynRespSize>
        <enableDynGzipCompress>1</enableDynGzipCompress>
        <gzipCompressLevel>6</gzipCompressLevel>
        <enableGzipCompress>1</enableGzipCompress>
        <compressibleTypes>text/html</compressibleTypes>
        <gzipAutoUpdateStatic>1</gzipAutoUpdateStatic>
        <gzipStaticCompressLevel>6</gzipStaticCompressLevel>
        <gzipMaxFileSize>10M</gzipMaxFileSize>
        <gzipMinFileSize>1k</gzipMinFileSize>
    </tuning>
    <logging>
        <log>
            <fileName>$SERVER_ROOT/logs/error.log</fileName>
            <logLevel>DEBUG</logLevel>
            <debugLevel>0</debugLevel>
            <rollingSize>10M</rollingSize>
        </log>
        <accessLog>
            <fileName>$SERVER_ROOT/logs/access.log</fileName>
            <keepDays>30</keepDays>
            <rollingSize>10M</rollingSize>
            <logReferer>1</logReferer>
            <logUserAgent>1</logUserAgent>
        </accessLog>
    </logging>
    <indexFiles>index.html</indexFiles>
    <security>
        <accessDenyDir>
            <dir>/</dir>
            <dir>/etc/*</dir>
            <dir>$SERVER_ROOT/conf/*</dir>
            <dir>$SERVER_ROOT/admin/conf/*</dir>
        </accessDenyDir>
        <fileAccessControl>
            <followSymbolLink>1</followSymbolLink>
            <checkSymbolLink>1</checkSymbolLink>
            <requiredPermissionMask>004</requiredPermissionMask>
            <restrictedPermissionMask>0</restrictedPermissionMask>
        </fileAccessControl>
        <maxConnsPerClient>1000</maxConnsPerClient>
        <throttleLimit>0</throttleLimit>
        <accessControl>
            <allow>ALL</allow>
            <deny></deny>
        </accessControl>
    </security>
</httpServerConfig>

