X-Accel-Redirect to proxy_pass

Hi
I have 1 proxy and 2 group of web servers; the first group are the
application servers and the second group are the file storage servers
I’m trying to set the proxy in a way that the app servers send a
‘X-Accel-Redirect’ header with the filepath of a file in the storage
servers without luck.

the app server send the header:
down.php

<?php header('X-Accel-Redirect: /store/data/mass4.txt'); ?>

the conf in the proxy is:
location /store/ {
internal;
proxy_pass http://filestore;
}

the filestore server error log

192.168.1.9 - - [12/Aug/2008:23:03:56 +0900] “GET /tst/down.php
HTTP/1.0” 404 169 “http://proxyserver/tst/” “Mozilla/5.0 (X11; U; Linux
i686; ja; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1”

Is there a way to use X-Accel-Redirect with 3 servers or the files to
download have to be in the proxy server?.

nginx version: nginx/0.6.32

Regards

Tuqui

On Tue, Aug 12, 2008 at 11:30:33PM +0900, Daniel wrote:

?>
HTTP/1.0" 404 169 “http://proxyserver/tst/” “Mozilla/5.0 (X11; U; Linux
i686; ja; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1”

Is there a way to use X-Accel-Redirect with 3 servers or the files to
download have to be in the proxy server?.

Yes, this should work. Probably, your application and fileserver
are virtual hosts those served by the same server. Probably, you
need to set right Host header.

On Wed, Aug 13, 2008 at 01:46:33PM +0900, Daniel wrote:

First I want to thank you for nginx is superb, and for your time to respond.
I debug the proxy server and looks like the request after the
redirection didn’t change!?.
Any hints?.

This is nginx feature: if you set proxy_pass without URI part, then
it will use original URI.

Workaround is to add URI part:

location /store/ {
internal;

Hi Igor,

First I want to thank you for nginx is superb, and for your time to
respond.
I debug the proxy server and looks like the request after the
redirection didn’t change!?.
Any hints?.

2008/08/13 12:06:01 [debug] 14824#0: *1 accept: 192.168.141.106 fd:6
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 6:
60000:3121077165
2008/08/13 12:06:01 [debug] 14824#0: *1 epoll add event: fd:6 op:1
ev:80000001
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 08663F10:636
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 08664190:1024
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 08660EC0:4096
2008/08/13 12:06:01 [debug] 14824#0: *1 http process request line
2008/08/13 12:06:01 [debug] 14824#0: *1 recv: fd:6 410 of 1024
2008/08/13 12:06:01 [debug] 14824#0: *1 http request line: “GET
/zip/data.php HTTP/1.1”
2008/08/13 12:06:01 [debug] 14824#0: *1 http uri: “/zip/data.php”
2008/08/13 12:06:01 [debug] 14824#0: *1 http args: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http exten: “php”
2008/08/13 12:06:01 [debug] 14824#0: *1 http process request header line
2008/08/13 12:06:01 [debug] 14824#0: *1 http header: “Host: mambo-muchi”
2008/08/13 12:06:01 [debug] 14824#0: 1 http header: “User-Agent:
Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.0.1) Gecko/2008072820
Firefox/3.0.1”
2008/08/13 12:06:01 [debug] 14824#0: 1 http header: "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,
/
;q=0.8"
2008/08/13 12:06:01 [debug] 14824#0: *1 http header: “Accept-Language:
ja,en-us;q=0.7,en;q=0.3”
2008/08/13 12:06:01 [debug] 14824#0: *1 http header: “Accept-Encoding:
gzip,deflate”
2008/08/13 12:06:01 [debug] 14824#0: 1 http header: "Accept-Charset:
Shift_JIS,utf-8;q=0.7,
;q=0.7"
2008/08/13 12:06:01 [debug] 14824#0: *1 http header: “Keep-Alive: 300”
2008/08/13 12:06:01 [debug] 14824#0: *1 http header: “Connection:
keep-alive”
2008/08/13 12:06:01 [debug] 14824#0: *1 http header: “Referer:
http://mambo-muchi/zip/
2008/08/13 12:06:01 [debug] 14824#0: *1 http header done
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer del: 6: 3121077165
2008/08/13 12:06:01 [debug] 14824#0: *1 generic phase: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 find location for
“/zip/data.php”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: = “/50x.html”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/data/”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/store/”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/zip/”
2008/08/13 12:06:01 [debug] 14824#0: *1 using configuration “/zip/”
2008/08/13 12:06:01 [debug] 14824#0: *1 http cl:-1 max:1048576
2008/08/13 12:06:01 [debug] 14824#0: *1 generic phase: 2
2008/08/13 12:06:01 [debug] 14824#0: *1 post rewrite phase: 3
2008/08/13 12:06:01 [debug] 14824#0: *1 generic phase: 4
2008/08/13 12:06:01 [debug] 14824#0: *1 access phase: 5
2008/08/13 12:06:01 [debug] 14824#0: *1 access phase: 6
2008/08/13 12:06:01 [debug] 14824#0: *1 post access phase: 7
2008/08/13 12:06:01 [debug] 14824#0: *1 http init upstream, client
timer: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 epoll add event: fd:6 op:3
ev:80000005
2008/08/13 12:06:01 [debug] 14824#0: *1 http script copy: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http script var: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http script copy: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http script copy: “”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header: “User-Agent:
Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.0.1) Gecko/2008072820
Firefox/3.0.1”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header: "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,
/
;q=0.8"
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Accept-Language: ja,en-us;q=0.7,en;q=0.3”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header:
“Accept-Encoding: gzip,deflate”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header:
"Accept-Charset: Shift_JIS,utf-8;q=0.7,
;q=0.7"
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header: “Referer:
http://mambo-muchi/zip/
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header:
"GET /zip/data.php HTTP/1.0
Host: brinxwww1
Connection: close
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.0.1)
Gecko/2008072820 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,
/
;q=0.8
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,
;q=0.7
Referer: http://mambo-muchi/zip/

"
2008/08/13 12:06:01 [debug] 14824#0: *1 http cleanup add: 08661818
2008/08/13 12:06:01 [debug] 14824#0: *1 get rr peer, try: 1
2008/08/13 12:06:01 [debug] 14824#0: *1 socket 9
2008/08/13 12:06:01 [debug] 14824#0: *1 epoll add connection: fd:9
ev:80000005
2008/08/13 12:06:01 [debug] 14824#0: *1 connect to 192.168.141.113:80,
fd:9 #2
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream connect: -2
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 9:
60000:3121077166
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream check client,
write event:1, “/zip/data.php”
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream recv(): -1 (11:
Resource temporarily unavailable)
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream send request
handler
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream send request
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer buf fl:1 s:386
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer in: 08661834
2008/08/13 12:06:01 [debug] 14824#0: *1 writev: 386
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer out: 00000000
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer del: 9: 3121077166
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 9:
60000:3121077169
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream process header
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 08661EC8:4096
2008/08/13 12:06:01 [debug] 14824#0: *1 recv: fd:9 289 of 4096
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy status 200 “200 OK”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header: “Date: Wed,
13 Aug 2008 03:06:01 GMT”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header: “Server:
Apache/2.2.3 (CentOS)”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“X-Powered-By: PHP/5.1.6”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Content-Disposition: attachment; filename=Messages3.txt”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“X-Accel-Redirect: /store/data/messages.4”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Content-Length: 0”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header: “Connection:
close”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Content-Type: text/html; charset=UTF-8”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header done
2008/08/13 12:06:01 [debug] 14824#0: *1 finalize http upstream request:
-5
2008/08/13 12:06:01 [debug] 14824#0: *1 finalize http proxy request
2008/08/13 12:06:01 [debug] 14824#0: *1 free rr peer 1 0
2008/08/13 12:06:01 [debug] 14824#0: *1 close http upstream connection:
9
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer del: 9: 3121077169
2008/08/13 12:06:01 [debug] 14824#0: *1 internal redirect:
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 generic phase: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 find location for
“/store/data/messages.4”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: = “/50x.html”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/data/”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/store/”
2008/08/13 12:06:01 [debug] 14824#0: *1 find location: “/zip/”
2008/08/13 12:06:01 [debug] 14824#0: *1 using configuration “/store/”
2008/08/13 12:06:01 [debug] 14824#0: *1 http cl:-1 max:1048576
2008/08/13 12:06:01 [debug] 14824#0: *1 generic phase: 2
2008/08/13 12:06:01 [debug] 14824#0: *1 post rewrite phase: 3
2008/08/13 12:06:01 [debug] 14824#0: *1 generic phase: 4
2008/08/13 12:06:01 [debug] 14824#0: *1 access phase: 5
2008/08/13 12:06:01 [debug] 14824#0: *1 access phase: 6
2008/08/13 12:06:01 [debug] 14824#0: *1 post access phase: 7
2008/08/13 12:06:01 [debug] 14824#0: *1 http init upstream, client
timer: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 http script copy: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http script var: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http script copy: “”
2008/08/13 12:06:01 [debug] 14824#0: *1 http script copy: “”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header: “User-Agent:
Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.0.1) Gecko/2008072820
Firefox/3.0.1”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header: "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,
/
;q=0.8"
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Accept-Language: ja,en-us;q=0.7,en;q=0.3”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header:
“Accept-Encoding: gzip,deflate”
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header:
"Accept-Charset: Shift_JIS,utf-8;q=0.7,
;q=0.7"
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header: “Referer:
http://mambo-muchi/zip/
2008/08/13 12:06:01 [debug] 14824#0: 1 http proxy header:
"GET /zip/data.php HTTP/1.0
Host: brinxstore1
Connection: close
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.0.1)
Gecko/2008072820 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,
/
;q=0.8
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,
;q=0.7
Referer: http://mambo-muchi/zip/

"
2008/08/13 12:06:01 [debug] 14824#0: *1 http cleanup add: 08661EB0
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 0869BBC8:4096
2008/08/13 12:06:01 [debug] 14824#0: *1 get rr peer, try: 1
2008/08/13 12:06:01 [debug] 14824#0: *1 socket 9
2008/08/13 12:06:01 [debug] 14824#0: *1 epoll add connection: fd:9
ev:80000005
2008/08/13 12:06:01 [debug] 14824#0: *1 connect to 192.168.141.76:80,
fd:9 #3
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream connect: -2
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 9:
60000:3121077170
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream send request
handler
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream send request
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer buf fl:1 s:388
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer in: 0869BC58
2008/08/13 12:06:01 [debug] 14824#0: *1 writev() not ready (11: Resource
temporarily unavailable)
2008/08/13 12:06:01 [debug] 14824#0: *1 writev: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer out: 0869BC58
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer del: 9: 3121077170
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 9:
60000:3121077170
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream send request
handler
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream send request
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer in: 0869BC58
2008/08/13 12:06:01 [debug] 14824#0: *1 writev: 388
2008/08/13 12:06:01 [debug] 14824#0: *1 chain writer out: 00000000
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer del: 9: 3121077170
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 9:
60000:3121077171
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream process header
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 0869CBD0:4096
2008/08/13 12:06:01 [debug] 14824#0: *1 recv: fd:9 319 of 4096
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy status 404 “404 Not
Found”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header: “Server:
nginx/0.6.32”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header: “Date: Wed,
13 Aug 2008 03:06:01 GMT”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Content-Type: text/html”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header:
“Content-Length: 169”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header: “Connection:
close”
2008/08/13 12:06:01 [debug] 14824#0: *1 http proxy header done
2008/08/13 12:06:01 [debug] 14824#0: *1 HTTP/1.1 404 Not Found
Server: nginx/0.6.32
Date: Wed, 13 Aug 2008 03:06:01 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Content-Disposition: attachment; filename=Messages3.txt
Content-Length: 169

2008/08/13 12:06:01 [debug] 14824#0: *1 write new buf t:1 f:0 0869BE0C,
pos 0869BE0C, size: 227 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 http write filter: l:0 f:0 s:227
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream process upstream
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe read upstream: 1
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe preread: 169
2008/08/13 12:06:01 [debug] 14824#0: *1 readv: 1:3777
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe recv chain: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe buf free s:0 t:1 f:0
0869CBD0, pos 0869CC66, size: 169 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 input buf #0
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe write downstream: 1
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe write downstream flush in
2008/08/13 12:06:01 [debug] 14824#0: *1 http output filter
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 copy filter:
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 http postpone filter
“/store/data/messages.4?” 0869BFD4
2008/08/13 12:06:01 [debug] 14824#0: *1 http postpone filter out
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 write old buf t:1 f:0 0869BE0C,
pos 0869BE0C, size: 227 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 write new buf t:1 f:0 0869CBD0,
pos 0869CC66, size: 169 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 http write filter: l:0 f:0 s:396
2008/08/13 12:06:01 [debug] 14824#0: *1 copy filter: 0
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 pipe write downstream done
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer: 9, old: 3121077171,
new: 3121077172
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream exit: 00000000
2008/08/13 12:06:01 [debug] 14824#0: *1 finalize http upstream request:
0
2008/08/13 12:06:01 [debug] 14824#0: *1 finalize http proxy request
2008/08/13 12:06:01 [debug] 14824#0: *1 free rr peer 1 0
2008/08/13 12:06:01 [debug] 14824#0: *1 close http upstream connection:
9
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer del: 9: 3121077171
2008/08/13 12:06:01 [debug] 14824#0: *1 http upstream temp fd: -1
2008/08/13 12:06:01 [debug] 14824#0: *1 http output filter
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 copy filter:
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 http postpone filter
“/store/data/messages.4?” BFDADE28
2008/08/13 12:06:01 [debug] 14824#0: *1 http postpone filter out
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 write old buf t:1 f:0 0869BE0C,
pos 0869BE0C, size: 227 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 write old buf t:1 f:0 0869CBD0,
pos 0869CC66, size: 169 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 write new buf t:0 f:0 00000000,
pos 00000000, size: 0 file: 0, size: 0
2008/08/13 12:06:01 [debug] 14824#0: *1 http write filter: l:1 f:0 s:396
2008/08/13 12:06:01 [debug] 14824#0: *1 http write filter limit 0
2008/08/13 12:06:01 [debug] 14824#0: *1 writev: 396
2008/08/13 12:06:01 [debug] 14824#0: *1 http write filter 00000000
2008/08/13 12:06:01 [debug] 14824#0: *1 copy filter: 0
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 http finalize request: 0,
“/store/data/messages.4?”
2008/08/13 12:06:01 [debug] 14824#0: *1 set http keepalive handler
2008/08/13 12:06:01 [debug] 14824#0: *1 http close request
2008/08/13 12:06:01 [debug] 14824#0: *1 http log handler
2008/08/13 12:06:01 [debug] 14824#0: *1 free: 0869CBD0
2008/08/13 12:06:01 [debug] 14824#0: *1 free: 08661EC8
2008/08/13 12:06:01 [debug] 14824#0: *1 free: 08660EC0, unused: 4
2008/08/13 12:06:01 [debug] 14824#0: *1 free: 0869BBC8, unused: 2717
2008/08/13 12:06:01 [debug] 14824#0: *1 event timer add: 6:
65000:3121082172
2008/08/13 12:06:01 [debug] 14824#0: *1 free: 08663F10
2008/08/13 12:06:01 [debug] 14824#0: *1 free: 08664190
2008/08/13 12:06:01 [debug] 14824#0: *1 hc free: 00000000 0
2008/08/13 12:06:01 [debug] 14824#0: *1 hc busy: 00000000 0
2008/08/13 12:06:01 [debug] 14824#0: *1 tcp_nodelay
2008/08/13 12:06:01 [debug] 14824#0: *1 post event 08681C20
2008/08/13 12:06:01 [debug] 14824#0: *1 delete posted event 08681C20
2008/08/13 12:06:01 [debug] 14824#0: *1 http keepalive handler
2008/08/13 12:06:01 [debug] 14824#0: *1 malloc: 08663F10:1024
2008/08/13 12:06:01 [debug] 14824#0: *1 recv: fd:6 -1 of 1024
2008/08/13 12:06:01 [debug] 14824#0: *1 recv() not ready (11: Resource
temporarily unavailable)
2008/08/13 12:07:06 [debug] 14824#0: *1 event timer del: 6: 3121082172
2008/08/13 12:07:06 [debug] 14824#0: *1 http keepalive handler
2008/08/13 12:07:06 [debug] 14824#0: *1 close http connection: 6
2008/08/13 12:07:06 [debug] 14824#0: *1 free: 08663F10
2008/08/13 12:07:06 [debug] 14824#0: *1 free: 00000000
2008/08/13 12:07:06 [debug] 14824#0: *1 free: 00000000
2008/08/13 12:07:06 [debug] 14824#0: *1 free: 0865B1E0, unused: 56

end of log

Tuqui

Igor S. さんは書きました:

down.php
the filestore server error log
Yes, this should work. Probably, your application and fileserver
are virtual hosts those served by the same server. Probably, you
need to set right Host header.


Daniel Nakasone
Marine System Associates, Inc.
Address : 5-2-1 Makiminato Annex 6F
Urasoe City,
Okinawa Japan 900-0036
Tel : +81-98-942-5575
Fax : +81-98-942-5574
URL : http://www.telesat.co.jp
http://mets.netfan.ne.jp
http://tuqui.net
Mail : [email protected]


On Wed, Aug 13, 2008 at 10:51:07AM +0400, Igor S. wrote:

Workaround is to add URI part:

location /store/ {
internal;

The attached patch fix the bug.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs