Hello everyone ! I'm web developer from Russia. (and server administrator from a little time)
I've just bought a new server in datacentre. I had a clear CentOS 5.3 installed on it. I've got ip for it (example x.x.x.x further) and a hostname (x.x.x.x.colo.static.dc.domain.tld)
First, i've added string to /etc/hosts like: x.x.x.x x.x.x.x.colo.static.dc.domain.tld
after that command hostname -f prints x.x.x.x.colo.static.dc.domain.tld
Then i set up dns. I registered domain (example: site.com) and created to subdomains: ns1 and ns2 and set IPs for them (for ns1 = ip of this server, for ns2 = ip of my another server with virtualmin). I added Virtual Server for this domain (site.com) and in dns settings for it i set nameservers ns1.site.com and ns2.site.com. In Address part i've also added records
Then, i've downloaded virtualmin install script and installed it..
All works fine, but some problems:
DefaultServer on AccessGrantMsg "User %u logged in."DisplayConnect /etc/ftpissue DisplayLogin /etc/ftpmotd DisplayGoAway /etc/ftpgoaway
DeferWelcome offUse this to excude users from the chroot
DefaultRoot ~ !admUse pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd AuthOrder mod_auth_pam.c* mod_auth_unix.c
IdentLookups off UseReverseDNS off
Port 21 Umask 022Default to show dot files in directory listings
ListOptions "-a"Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on AllowStoreRestart on
MaxInstances 20Set the user and group that the server normally runs at.
User nobody Group nobodyDisable sendfile by default since it breaks displaying the download speeds in ftptop and ftpwho
UseSendfile noThis is where we want to put the pid file
ScoreboardFile /var/run/proftpd.scoreNormally, we want users to do a few things.
AllowOverwrite yes AllowAllDefine the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b" LogFormat auth "%v [%P] %h %t \"%r\" %s"
ServerName site.com User ftp Group ftp UserAlias anonymous ftp DenyAll RequireValidShell off ExtendedLog /opt/sites/site/logs/ftp.log
I want an ability to login to Virtual Server's ftp through a domain like ftp.site.com, ftp.site2.com, ftp.site3.com etc.
Friends! Help me plz !
Best Regards, Konstantyn