LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2004, 01:51 AM   #1
Biggster
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
How to route incoming files on an FTP server?


I have a Linux FTP server(ProFTPD) and I want to "screen" incoming files so that it would be routed to the correct destination(i.e. folder). I was told this was possible if there is some way for the server to read the file's header in order to direct it to the corresponding directory. For example if a certain file, table.pdf, has a header that contains the date 02-24-04, the server would automatically detect this and place it at the 022404 folder.

Could anyone show me where to start? Would I need to have extensive knowledge of Linux(I have only very basic knowledge right now)? Or are there already commercial software that does this?

Thanks.
 
Old 02-26-2004, 04:15 AM   #2
Dave_bsr
LQ Newbie
 
Registered: Apr 2002
Location: Michigan (msu)
Distribution: mandrake
Posts: 27

Rep: Reputation: 15
suggestions for redirection

I'm not quite sure what you want to do. Do you want a request to be bounced to a specific file? couldn't you just have the files in that particular directory, and ways to get to them on the FTP server? like a main directory, and under that the directories for hte given dates. That way, people could just click the link and that would send them to the right file.

Couldn't you just change the way people got sent to the files on your FTP?

Or, is it that you want to check incoming requests. So if someone wanted the file "/pub/202304-dudeman.pdf" you would redirect that request to different request, such as "/pub/dates/202304/dudeman.pdf". I don't know why you'd want to do that, but two things come to mind:


1. put a symlink between /pub/202304-dudeman.pdf and /pub/dates/202304/dudeman.pdf. That way, the request would go to the right place.

2. change the way the file is found. Assuming someone gets to your ftp through somewhere, just change the link.



I know neither of these are exactly what you want. you can also change the viewers FTP root (the place where they start out, and cannot go above) as well. sorry if this wasn't helpful, I know i didnt do exactly what you want..

thought: if you use proftp via xinetd, I heard you can run scripts between the xinetd request and the request to proftp, perhaps to change the headers as you say. somethign to check out, i guess.
1. symlinks. Just ha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
How to keep the original time of files uploaded to FTP server wondial Linux - Software 1 10-26-2004 10:12 PM
Saving/opening files directly on/from FTP server saurya_s Linux - Software 0 02-03-2004 02:54 PM
Cannot directly access files from server via browser on FTP MasterC Linux - Networking 10 01-15-2003 03:28 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration