Ed Morrison
2006-Sep-01 17:36 UTC
[CentOS] OT: How to make files placed into FTP directory available via http
I'm hoping someone out there can tell me or direct me on where to find this info on how to make files placed into an ftp directory available via an url link in an email. I will have a staff member upload the files to a directory on my ftp server (which is also the web server) and the files would have to be automatically linked to a web directory, unless the files can be read directly from the ftp server. This needs to have no interaction from me and should be automagic..... Any and all would be greatly appreciated. Thanks Ed
Les Mikesell
2006-Sep-01 18:05 UTC
[CentOS] OT: How to make files placed into FTP directory available via http
On Fri, 2006-09-01 at 10:36 -0700, Ed Morrison wrote:> I'm hoping someone out there can tell me or direct me on where to find > this info on how to make files placed into an ftp directory available > via an url link in an email. I will have a staff member upload the > files to a directory on my ftp server (which is also the web server) and > the files would have to be automatically linked to a web directory, > unless the files can be read directly from the ftp server. This needs > to have no interaction from me and should be automagic..... > > Any and all would be greatly appreciated.No need to link anything - just make the home directory for the user doing the ftp operation the same place that httpd expects to find the files and permissioned accordingly. The user can view the web server's directory link after the upload and mail that page or cut/paste the URL into the email. -- Les Mikesell lesmikesell at gmail.com
John Summerfield
2006-Sep-02 00:22 UTC
[CentOS] OT: How to make files placed into FTP directory available via http
Ed Morrison wrote:> I'm hoping someone out there can tell me or direct me on where to find > this info on how to make files placed into an ftp directory available > via an url link in an email. I will have a staff member upload the > files to a directory on my ftp server (which is also the web server) and > the files would have to be automatically linked to a web directory, > unless the files can be read directly from the ftp server. This needs > to have no interaction from me and should be automagic..... > > Any and all would be greatly appreciated.read up on virtual hosts. If you have selinux enabled (you should), then you may need to do something like this: chcon --reference /var/www/ -R /var/local/mirrors/ -- Cheers John -- spambait 1aaaaaaa at computerdatasafe.com.au Z1aaaaaaa at computerdatasafe.com.au Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/ do not reply off-list