FTP to HTTP?

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

I have a ftp server currently but I want to be able to
enable people to download via http. How do I set this up
and is it even possible?

thx
 
Thomas said:
I have a ftp server currently but I want to be able to
enable people to download via http. How do I set this up
and is it even possible?

thx

This is processed through a simple html tag in an html document. In your
HREF tag, a scheme can be specified (file, ftp, http, nntp, gopher, etc) in
the target's URL. more info: http://www.ietf.org/rfc/rfc1808.txt

example:

<HTML>
<BODY>
<P>Shortcut to the <A
href="ftp://www.fakedomain.com/directory/file.txt">FTP file</A>?
</BODY>
</HTML>

The html page need not be located on the ftp server but the server needs to
be resolved in the internet dns namespace (in other words, clients must be
able to reach the ftp server). All that's required is a browser at the
user's end that supports ftp (and most do).
 
so do I need port 80 or 21 open on my firewall?

Both. You need 80 open for HTTP traffic (the traffic that sees the HTML
document, so they can get to the link), and 21 for the FTP traffic.
 
That depends. If the html document is on the same server serving via ftp,
you'll need port 80 and 21.

If client uses an external web site to read the HTML URL tag, then only ftp
port 21 needs to be routed through. Again, the server needs to be resolved
in the public dns namespace or have a static public ip address
(ftp://205.0.0.1/file.txt).
 
Back
Top