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

Re: [cobalt-users] [RAQ4] ProFTP anonymous download location change?



---- Original Message -----
From: "Greg Hewitt-Long"
Sent: Friday, December 20, 2002 5:12 PM
Subject: [cobalt-users] [RAQ4] ProFTP anonymous download location change?


> Has anyone got a how-to or tutorial somewhere on how to change the ftp
download location for a single virtual site?
>
> Reason: I have a number of fairly large downloads which we offer for
download via ftp - users are complaining that they want to use http (I
know - I know...) - so rather than duplicate the files (there about about a
1Gb of datafiles), I'd rather simply change the proftp settings for the
site, such that the location for download for the files is the same file for
FTP and HTTP.
>
> tia
>

Greg,

It is pretty simple.  Here is a copy of my Virtual Site.

        <Anonymous /home/sites/home/ftp>
          User                          HOME
          Group                         ftp
          UserAlias                     anonymous HOME
          UserAlias                     guest HOME
          MaxClients                    10
          <Directory *>
            <Limit WRITE>
              DenyAll
            </Limit>
          </Directory>
          <Directory /home/sites/home/ftp/incoming>
            Umask                       002
            <Limit STOR>
              AllowAll
            </Limit>
            <Limit READ>
              DenyAll
            </Limit>
          </Directory>
        </Anonymous>

First thing first ...

you will want to change your directory setting.  So, lets say ... you are:
www.cobalt.com, so the dir setting
I would recommend would be:

/home/sites/www.cobalt.com/web/ftp

Of course, change the domain name :-)

With this config, people can download via:

http://www.blah.com/ftp/<filename>

or ftp it

ftp://www.blah.com/<filename>

also, if they want to download via "http" ... why not just sub ftp for http

ie:

ftp://www.domain.com/file

That is what we use to hand out files.  Of course, we did some modifying
a little bit, so you can't actually see what files are there, makes it great
so
if you have to put some stuff there, and you don't want people to see it.
I would highly recommend looking at:  www.proftpd.org and they have
some really great config examples!

Enjoy!

Brian N. Smith
NuOnce Networks
www.nuonce.net