Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: apache reverse proxy for ftp |
|
Author |
|
merlin128
Joined: 08 Sep 2010 Posts: 2
|
Posted: Wed 08 Sep '10 22:10 Post subject: apache reverse proxy for ftp |
|
|
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 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 09 Sep '10 11:58 Post subject: |
|
|
Nope that is a small mistake. The ftp creates the list of files which are technicly from the ftp server are in the root folder. It does not know that apache puts /ftp into that path.
I'm not sure, but maybe mod_proxy_html could correct that behaviour.
Else you could create a vhost like ftp.example.com and inside that vhost
ProxyPass / ftp://ip.address:port
ProxyPassReverse / ftp://ip.address:port |
|
Back to top |
|
merlin128
Joined: 08 Sep 2010 Posts: 2
|
Posted: Thu 09 Sep '10 15:04 Post subject: |
|
|
with a vhost, would I be able to connect to it from an ftp client software.. or just from web browser |
|
Back to top |
|
|
|
|
|
|