You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Cappellari Antonio <An...@LOQUENDO.COM> on 2004/11/05 15:09:31 UTC

[users@httpd] Reverse Proxy Http to Ftp Gateway

Hi all;

 

I've installed, on my linux box (kernel 2.4.27) , the Apache relelease
2.0.50 in a Reverse Proxy configuration.

In a http/http scenario all seems to work properly.

 

I also test it in a http/ftp scenario but it does't work.

 

In the httpd.cond I added the following lines:

 

Proxypass /ftp-s12/   ftp://s12-cpq13874.xxxx.yyy

 

<Location /ftp-s12/>

            ProxyPassReverse /

</Location>

 

The client "kapp" (IE-Windows) send a URL request
http://Apache2ip-address/ftp-s12/

It receive the authentication request windows for username and password.

The client after the correct authentication procedure get the list of
his home directory.

What is wrong now is that in the html page there are some wrong
settings, for each item (dir or file ) 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<html>

 <head>

  <title>kapp@/ftp-s12/</title>

  <base href="kapp@/ftp-s12/">

 </head>

 <body>

  <h2>Directory of <a href="/">kapp@</a>/<a
href="/ftp-s12/">ftp-s12</a>/</h2>

 

(/home/kapp)

 

  <hr />

 

<pre>Login successful. Have fun.

</pre>

 

<hr />

 

<pre>

&lt;html&gt;&lt;body&gt;&lt;p&gt;drwx------    2 501      501
4096 Nov 03 13:28 .

drwxr-xr-x    4 0        0            4096 Nov 03 13:28 <a
href="../">..</a>

-rw-r--r--    1 501      501            24 Aug 23  2002 <a
href=".bash_logout">.bash_logout</a>

-rw-r--r--    1 501      501           191 Aug 23  2002 <a
href=".bash_profile">.bash_profile</a>

-rw-r--r--    1 501      501           124 Aug 23  2002 <a
href=".bashrc">.bashrc</a>

-rw-r--r--    1 501      501           120 Sep 10  2002 <a
href=".gtkrc">.gtkrc</a>

-rw-------    1 0        0           21112 Nov 03 13:28 <a
href="ftp_v1.4.0.tar.gz">ftp_v1.4.0.tar.gz</a>

-rw-------    1 0        0          561412 Nov 03 13:28 <a
href="pure-ftpd-1.0.20.tar.gz">pure-ftpd-1.0.20.tar.gz</a>

-rw-------    1 0        0          146231 Nov 03 13:28 <a
href="vsftpd-2.0.1.tar.gz">vsftpd-2.0.1.tar.gz</a>

</pre>

 

  <hr />

 

  <address>Apache Server at 82.186.173.227 Port 80</address>

 

 

 </body>

</html>

 

 

So when I click on  vsftpd-2.0.1.tar.gz the browser tries to get the
page from "kapp@/ftp-s12/vsftpd-2.0.1.tar.gz" and not from
"Apache2ip-address/ftp-s12/vsftpd-2.0.1.tar.gz"

 

I also used the proxy-html module with these lines in the httpd
configuration file

 

<Location /ftp-s12/>

     ProxyPassReverse /

     SetOutputFilter proxy-html

     ProxyHTMLURLMap  /     /ftp-s12/

     ProxyHTMLURLMap  / ftp-s12     /ftp-s12

     RequestHeader    unset    Accept-Encoding

</Location>

 

So my question are:

1) Apache2 does not allow this configuration?

2) If yes could you give me some help? 

 

 

+----------------------------------------

| Cappellari Antonio

| Loquendo S.p.A.

| Via ValdellaTorre, 4 - 10149 Torino (Italy)

| Tel. +39-011-291-3437

| Mob. +39-335-766-9624

| e-mail: antonio.cappellari@loquendo.com

+----------------------------------------

 



Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to 
MailAdmin@tilab.com. Thank you
====================================================================