tohle je muj konfac, treba prinese nejakou inspiraci

Kód:
# Virtual Hosting Server Configuration
# by M.Lowes <markl@ftech.net>
# for Frontier Internet Services Limited
#      &#40;http&#58;//www.ftech.net/&#41;
#
ServerName                      "ftp.g.lan"
#
# Spawn from inetd?
#
#ServerType         inetd
#
# or maybe a standalone server...
#
ServerType          standalone
#
# don't give the server banner until _after_ authentication
#
DeferWelcome                    off
#
# Some basic defaults
#
Port                  21
Umask                022
TimeoutLogin         120
TimeoutIdle          600
TimeoutNoTransfer    900
TimeoutStalled      3600
#
# No, I don't think we'll run as root!
#
User                            nobody
Group                           nogroup
#
# This is a non-customer usable name, &#40;ie they should be connecting via www.&#123;domain&#125;&#41;
# not 'hostname'.  Therefore let's dump them in a dummy account and wait for them to
# scream.
#
DefaultRoot                     /home/
#
# Performance, let's do DNS resolution when we process the logs...
#
UseReverseDNS        off
#
# Where do we put the pid files?
#
#ScoreboardPath                 /var/run/proftpd
#
# Logging options
#
TransferLog                     /var/spool/proftpd/xferlog.legacy
#
# Some logging formats
#
LogFormat                       default "%h %l %u %t \"%r\" %s %b"
LogFormat                       auth    "%v &#91;%P&#93; %h %t \"%r\" %s"
LogFormat                       write   "%h %l %u %t \"%r\" %s %b"
#
# Global settings
#
<Global>
        DisplayLogin               welcome.msg
        DisplayFirstChdir          readme
        #
        # having to delete before uploading is a pain ;&#41;
        #
        AllowOverwrite             yes
        #
        # RestartAllow
        #
        AllowRetrieveRestart            on
        AllowStoreRestart               on
        #
        # Turn off Ident lookups
        #
        IdentLookups         off
        #
        # Logging
        #
        # file/dir access
        #
        ExtendedLog             /var/spool/proftpd/access.log WRITE,READ write
        #
        #
        # Record all logins
        #
        ExtendedLog             /var/spool/proftpd/auth.log AUTH auth
        #
        # Paranoia logging level....
        #
   ##ExtendedLog    /var/spool/proftpd/paranoid.log ALL default
</Global>
#
# Deny writing to the base server...
#
<Limit WRITE>
        DenyAll
</Limit>


# --------------------------------------------
# Virtual Servers start here....
#
# &#40;Note&#58; this is normally auto generated by a
# script written in house&#41;.
# --------------------------------------------

<VirtualHost ftp.g.lan>
        ServerAdmin             root@g.lan
        ServerName              "ftp.g.lan"
        MaxLoginAttempts        2
        RequireValidShell       no
        TransferLog             /var/spool/proftpd/xferlog.www
        MaxClients              50
        DefaultServer           on
        DefaultRoot             /home/ftp/ dod
        DefaultRoot             /home/ hostuser
        DefaultRoot             / root
        AllowOverwrite          yes

        #
        # No quickly do we kick someone out
        #
        TimeoutLogin                    120
        TimeoutIdle                     600
        TimeoutNoTransfer               900

        # --------------------------------------------
        # Got a Frontpage customer who keeps breaking things????
        #  - stick 'em in group fpage
        # --------------------------------------------

        <Directory /home/www/>
                <Limit ALL>
                        DenyGroup hostuser
                        DenyGroup dod
                </Limit>
        </Directory>
        <Directory /home/public/>
                <Limit ALL>
                        DenyGroup hostuser
                        DenyGroup dod
                </Limit>
        </Directory>
        <Directory /home/ftp/incoming>
                <Limit READ>
                        AllowAll
                </Limit>
                <Limit STOR MKD WRITE>
                        AllowGroup hostuser
                        AllowGroup users
                </Limit>
                <Limit DELE RMD RNFR RNTO >
                        AllowGroup root
                        DenyGroup hostuser
                        DenyGroup dod
                        DenyAll
                </Limit>
        </Directory>
        <Directory /home/ftp/pub>
                <Limit READ>
                        AllowAll
                </Limit>
                <Limit STOR MKD WRITE>
                        AllowGroup root
                </Limit>
                <Limit DELE RMD RNFR RNTO >
                        AllowGroup root
                </Limit>
        </Directory>
        <Directory ~/Maildir>
                <Limit ALL>
                        DenyALL
                </Limit>
        </Directory>
</VirtualHost>