How To Redirect http request to ftp
Mahyuddin Susanto
udienz at gmail.com
Sat Nov 28 15:45:01 MSK 2009
Hello Maxim
2009/11/28 Maxim Dounin <mdounin at mdounin.ru>:
> Hello!
>
> On Sat, Nov 28, 2009 at 05:58:37PM +0700, Mahyuddin Susanto wrote:
>
>> Hello all
>> I have a problem to configure Nginx, i want to redirect any file iso
>> from http to ftp. but i don't know how?
>>
>> example:
>> all iso (big file) located at http://fileserver.example.org/iso i want
>> to redirect any request to ftp://fileserver.example.org/iso
>>
>> any solutions?
>
> http://wiki.nginx.org/NginxHttpRewriteModule#rewrite
>
> Maxim Dounin
i still have a problem. here is my configuration
location ~* ^.+\.(iso|md5)$ {
proxy_pass ftp://192.168.1.1/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
More information about the nginx
mailing list