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
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 wrote:
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.
Hi Les:
Thanks, that did the trick. I appreciate the quick response.
Ed
-> Les Mikesell wrote: to Ed's original also
-> > 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. -> > -> >
Then Ed replied...
-> Hi Les: -> -> Thanks, that did the trick. I appreciate the quick response. -> -> Ed
Ed
Can you tell us specifically what you did?
I am a tad confused or lost here... and this is an interesting Centos app of course. :-)
I think the default setting for httpd is not to display the contents of a directory especially if there is no index file.
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
On Fri, 2006-09-01 at 12:15 -0700, Email Lists wrote:
[ftp files in, see them via http...]
I am a tad confused or lost here... and this is an interesting Centos app of course. :-)
It's pretty standard operation for any unix-like box if you undo the tacked-on security for the distribution. You want the updating user to have his home directory wherever the files should land, and the directory should be readable by the http server.
I think the default setting for httpd is not to display the contents of a directory especially if there is no index file.
Apache is infinitely configurable. If you want directories, set Options +Indexes for the scope you want. If the user already has a working home dir elsewhere you can point a symlink from the web directory to the place holding the files and use Options +Indexes +FollowSymLinks to make it work.
Email Lists wrote:
-> Les Mikesell wrote: to Ed's original also
-> > 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. -> > -> >
Then Ed replied...
-> Hi Les: -> -> Thanks, that did the trick. I appreciate the quick response. -> -> Ed
Ed
Can you tell us specifically what you did?
I am a tad confused or lost here... and this is an interesting Centos app of course. :-)
I think the default setting for httpd is not to display the contents of a directory especially if there is no index file.
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I'm not sure what I can add here. I created a directory on my webserver that is under my /var/www/html/images directory. I created a proftpd profile where that directory was the default upload directory for that user (profile). The images can be read by apache and displayed in a webpage or email as I was wanting to do.
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/