Welcome! Log In Create A New Profile

Advanced

Re: How To Redirect http request to ftp

November 28, 2009 07:52AM
Hello Maxim

2009/11/28 Maxim Dounin <mdounin@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;
}

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How To Redirect http request to ftp

udienz November 28, 2009 06:06AM

Re: How To Redirect http request to ftp

Maxim Dounin November 28, 2009 06:50AM

Re: How To Redirect http request to ftp

udienz November 28, 2009 07:52AM

Re: How To Redirect http request to ftp

edogawaconan November 28, 2009 08:00AM

Re: How To Redirect http request to ftp

udienz November 28, 2009 08:14AM

Re: How To Redirect http request to ftp

edogawaconan November 28, 2009 10:02AM

Re: How To Redirect http request to ftp

udienz November 28, 2009 10:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready