FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 25th, 2003, 08:55 AM
jflowers jflowers is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Canton, OH, USA
Posts: 37 jflowers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Apache FTP Reverse Proxy

Can Apache (specifically Apache2) be used as a reverse proxy for access to ftp servers? If so, how to configure? How to address?

Thanks.

Reply With Quote
  #2  
Old August 25th, 2003, 04:23 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
No, Apache (by nature of being an HTTP server) can only be used as an HTTP proxy.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old August 25th, 2003, 04:38 PM
jflowers jflowers is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Canton, OH, USA
Posts: 37 jflowers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
How strange then to have a module called mod_proxy_ftp. I wonder what it's for?

Reply With Quote
  #4  
Old December 18th, 2003, 06:34 PM
lovetour lovetour is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: California, U.S.A.
Posts: 3 lovetour User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Jflowers, did you ever get the ftp proxy feature implemented?

Apache's documentation site seems to clearly indicate that such a feature exists, but they don't go into much detail or give any examples.

If I work it out I'll post my solution here.

I have some doubts as to whether the feature is even appropriate for what I'd like to do -- I would like to proxy ftp via a virtual host, and I don't know if the ftp protocol provides the name of the host that the client requested...

Asa

Reply With Quote
  #5  
Old December 19th, 2003, 12:24 AM
lovetour lovetour is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: California, U.S.A.
Posts: 3 lovetour User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, after some more research, it seems that reverse-proxying ftp based on hostname, as I wanted to do, is not possible using a single DNS ip address for all hosts. It should be possible if multiple IPs are mapped to the proxy server all with different DNS names.

The only reference I found to hosting multiple distinct FTP sites with only one external IP address on a single port was at URL - to "ftp-gw that was included in the old TIS ... Fire Wall Tool Kit" which apparently proxies connections to different ftp servers by requiring login names in the form user@host.

It's also possible to proxy ftp servers using different ports or ip addresses on the proxy, but I was interested in defined name-based access on the standard ftp port.


I still didn't find a specific example for an FTP reverse proxy setup with Apache, but I can see that that setup doesn't suit my requirements.

I *think* the httpd.cong configuration for reverse ftp-proxy would go along the lines of:

Code:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / URL


The context would be important, and there may be other directives that need to be set. I think the simplest way to put it in a clear context would be to run a seperate instance/service of Apache with it's own .conf file, that listened just on port 21, perhaps on a specific ip.

Apache is new to me, so these are just hunches based on what I've seen so far. I haven't tried this setup.

Asa

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Apache FTP Reverse Proxy


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway