Solved

Apache mod_proxy_ftp

Posted on 2010-09-08
3
964 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
ID: 33633584
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
ID: 33635372
it does the same without it..
0
 
LVL 27

Assisted Solution

by:BigRat
BigRat earned 250 total points
ID: 34970454
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to add time taken to serve the request in ms in apache log configuration? 6 110
ProxyPass - Problem 5 151
Internal wordpress pages 404 5 42
PHP Register global 21 87
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…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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