<?xml version="1.0" encoding="UTF-8"?>
<httpServerConfig>
    <serverName>yBrite1</serverName>
    <mime>$SERVER_ROOT/conf/mime.properties</mime>
    <adminRoot>$SERVER_ROOT/admin/</adminRoot>
    <listenerList>
        <tcpListener>
            <address>*:3081</address>
        </tcpListener>
        <sslListener>
            <address>*:1447</address>
            <certFile>$SERVER_ROOT/cert/server.crt</certFile>
            <keyFile>$SERVER_ROOT/cert/server.pem</keyFile>
            <ciphers>ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+SSLv2:+EXP</ciphers>        
        </sslListener>
    </listenerList>
    <virtualHostList>
        <virtualHost name="vh1">
            <vhRoot>$SERVER_ROOT/vhost/vh1/</vhRoot>
            <configFile>$VH_ROOT/conf/vhconf.xml</configFile>
            <allowSymbolLink>1</allowSymbolLink>
        </virtualHost>
        <virtualHost name="vh2">
            <vhRoot>$SERVER_ROOT/vhost/vh2/</vhRoot>
            <configFile>$VH_ROOT/conf/vhconf.xml</configFile>
            <allowSymbolLink>0</allowSymbolLink>
        </virtualHost>
    </virtualHostList>
    <vhostListenerMapList>
        <vhostListenerMap vhost="vh1" listener="*:3081">
            www.vh1.com,vh1.com,localhost,127.0.0.1,192.168.0.10
        </vhostListenerMap>
        <vhostListenerMap vhost="vh1" listener="*:1447">
            *
        </vhostListenerMap>
        <vhostListenerMap vhost="vh2" listener="*:3081">
            www.vh2.com,vh2.com,localhost,192.168.0.10
        </vhostListenerMap>
        <vhostListenerMap vhost="vh2" listener="*:1447">
            www.vh2.com,vh2.com,192.168.0.10
        </vhostListenerMap>
    </vhostListenerMapList>
    <fcgiList>
        <fcgi uri="localhost:5555" backlog="10">$SERVER_ROOT/fcgi-bin/lt-echo-cpp</fcgi>
        <fcgi uri="localhost:5557" backlog="20">$SERVER_ROOT/fcgi-bin/php-cgi</fcgi>
    </fcgiList>
    <tuning>
        <maxConnections>500</maxConnections>
        <maxSSLConnections>100</maxSSLConnections>
        <connTimeOut>1000</connTimeOut>
        <maxKeepAliveReq>1000</maxKeepAliveReq>
        <keepAliveTimeOut>100</keepAliveTimeOut>
        <throttleLimit>8192</throttleLimit>
        <sndBufSize>12288</sndBufSize>
        <rcvBufSize>0</rcvBufSize>
    </tuning>
    <logging>
        <serverLog>
            <fileName>$SERVER_ROOT/logs/error.log</fileName>
            <logLevel>DEBUG</logLevel>
            <debugLevel>0</debugLevel>
        </serverLog>
        <accessLog>
            <fileName>$SERVER_ROOT/logs/access.log</fileName>
            <append>true</append>
            <keepDays>90</keepDays>
        </accessLog>
    </logging>
    <security>
        <accessDenyDir>
            <dir>/</dir>
            <dir>/etc/*</dir>
            <dir>/usr/*</dir>
            <dir>/var/*</dir>
            <dir>$SERVER_ROOT/conf/*</dir>
            <dir>$SERVER_ROOT/cert/*</dir>
        </accessDenyDir>
        <followSymbolLink>1</followSymbolLink>
        <user>gwang</user>
        <group>users</group>
        <accessControl>
            <allow>
                <subnet>*</subnet>
            </allow>
            <deny>
                <subnet>192.168.1.*</subnet>
                <ip>102.11.1.1</ip>
                <subnet>192.168.128.5/255.255.128.0</subnet>
            </deny>
        </accessControl>
    </security>
    
    
</httpServerConfig>
