How To Redirect http request to ftp
Edho P Arief
edhoprima at gmail.com
Sat Nov 28 15:56:24 MSK 2009
On Sat, Nov 28, 2009 at 7:45 PM, Mahyuddin Susanto <udienz at gmail.com> wrote:
> 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;
no, you can't do this.
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list