How To Redirect http request to ftp

Mahyuddin Susanto udienz at gmail.com
Sat Nov 28 16:08:59 MSK 2009


2009/11/28 Edho P Arief <edhoprima at gmail.com>:

> no, you can't do this.
>

hm.. ic ic.. i try another method

rewrite ^.+\.(iso)$ ftp://10.10.2.73/iso/$1 permanent;

and i still got error, because any request iso files only redirect to
ftp://192.168.1.1/iso

fallen:~$ wget http://10.10.3.243:8080/iso/ubuntu/karmic/ubuntu-9.10-alternate-i386.iso
--2009-11-28 20:08:12--
http://10.10.3.243:8080/iso/ubuntu/karmic/ubuntu-9.10-alternate-i386.iso
Connecting to 10.10.3.243:3128... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: ftp://10.10.2.73/iso/iso [following]
--2009-11-28 20:08:12--  ftp://10.10.2.73/iso/iso
Connecting to 10.10.3.243:3128... connected.
Proxy request sent, awaiting response... 404 Not Found
2009-11-28 20:08:13 ERROR 404: Not Found.


-- 
udienz (Mahyuddin Susanto)
site = http://blog.udienz.net




More information about the nginx mailing list