paperclips-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paperclips-discuss] First version using config files is now checked in.


From: Nic Ferrier
Subject: [Paperclips-discuss] First version using config files is now checked in.
Date: 22 Feb 2002 11:27:34 +0000

Start the server like this:


  java gnupaperclips --config=server.xml


Here's an example server.xml:


<server>
    <tcp port="7171"/>

    <warpath path="/var/local/wars:/home/nferrier/wars" />

    <!-- define the default host -->
    <host>

        <log>
            <file name="1"/>
        </log>

        <!-- this maps the root webapp to a FileServer serving file
             from the specified directory. -->
        <mapping pattern="/">
            <file-dir name="/var/local/www" />
        </mapping>

    </host>

    <!-- another host -->
    <host name="www.paperclips.org">

        <!-- logging of host stuff will go to stdout -->
        <log>
            <file name="1"/>
        </log>

        <!-- map the root context to a webapp -->
        <mapping pattern="/">
            <file-dir name="/home/web/paperclips"/>
        </mapping>

    </host>
        
</server>



If anyone is still listening... Have fun!


Nic



reply via email to

[Prev in Thread] Current Thread [Next in Thread]