john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Apache vsftpd sharing mount links

Creating /anders-www/umr-download directory

each ftp user needs created a directory in their home ftp folder link-to-umr-download

then you link it to the "real" directory with the files with a mount

root@pfeiew540:/anders-ftp/p.reast@anders.co.uk# mount --bind /anders-www/download /anders-ftp/p.reast\@anders.co.uk/link-to-download

to undo the above merely cd /anders-ftp/p.reast...

umount link-to-download

THEN configure apache to access those files (allowing browsing for password auth users)

ServerAdmin webmaster@localhost DocumentRoot /anders-www/umr5-download

    <Directory /anders-www/umr5-download>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all

            # This directive allows us to have apache2's default start page
            # in /apache2-default/, but still have / go to the right place
            #RedirectMatch ^/$ /apache2-default/

            DAV On
            AuthType Basic
            AuthName "Download"
            AuthUserFile /anders-password/download.password
            Require valid-user

    </Directory>


    Alias /umr5-download /anders-www/umr5-download

Options Indexes MultiViews FollowSymLinks DAV On AuthType Basic AuthName "Download" AuthUserFile /anders-password/download.password Require valid-user

don't forget to /etc/init.d/apache2 reload /etc/init.d/apache2 restart

links to the files (which are passworded by anders-password/download.password) should be:

http://download.anders.co.uk/umr5-download/Application_Notes/AN100_SDK_5Series_Rev1.1.pdf

http://download.anders.co.uk/umr5-download


  • « Linux alias an executable for an easier name much like a shortcut
  • Trac admin from linux command line »

Published

Feb 6, 2010

Category

linux

~144 words

Tags

  • apache 13
  • links 4
  • linux 249
  • mount 7
  • sharing 2
  • vsftpd 6