Solved

Apache mod_proxy_ftp

Posted on 2010-09-08
3
942 Views
Last Modified: 2012-06-27
I have many web sites that work through an apache reverse proxy (ProxyPass/ProxyPassReverse)..

I wanted to try setting up an ftp the same way..

I have both:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

and:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

and:
ProxyPass /ftp ftp://ip.address:port
ProxyPassReverse /ftp ftp://ip.address:port

==============================
This works, kind of, the files are listed, but I cannot click on them.. When I do the /ftp is dropped so the file cannot be found..

http://server:port/ftp
lists directory, then when clicking it shows
http://server:port/file instead of http://server:port/ftp/file

==================================

also, I have no clue how to use an ftp client to access via this reverse proxy..
Thanks
0
Comment
Question by:ODOTServer
3 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 250 total points
Comment Utility
Hi.

You don't need ProxyPassReverse, because remote protocol is FTP and there is nothing to rewrite there (there is no HTTP Location: header to rewrite).

Try without it.
0
 

Author Comment

by:ODOTServer
Comment Utility
it does the same without it..
0
 
LVL 27

Assisted Solution

by:BigRat
BigRat earned 250 total points
Comment Utility
Listening on port 21 or port 80?

As far as I can see Apache is acting like an FTP server, which, when connected sends a list of files back (ls command). Try using an FTP client to access the Apache port.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now