Reverse proxy images - windows

I’ve configured a reverse proxy for images on a windows box however it
is
not working as expected.

First time I send a request to the server and I get the image with an
http
200 as expected.
Second hit the request hangs for about a minute returning an http 304 as
expected however I do not understand why the server hangs for about a
minute? Next hit goes fine and then the following again hangs. I’m
consistently getting the same results over and over again but I have no
clue.

The same configuration on a linux box works correctly so I assume this
is
either a bug on the windows distribution or I might have to use a
different
config for some reason on the windows box?

Help will be greatly appreciated!

Thanks!

Posted at Nginx Forum:

nginx version?
configuration?
log entries?

Posted at Nginx Forum:

On Tuesday 12 August 2014 21:26:27 gmlopez wrote:

The same configuration on a linux box works correctly so I assume this is
either a bug on the windows distribution or I might have to use a different
config for some reason on the windows box?

http://nginx.org/en/docs/windows.html

wbr, Valentin V. Bartenev

Sorry, I forgot to add this information.

I did try 1.6.1 and 1.7.4 all with the same results.
Log entries do not show anything useful apart from the request being
received in access log and derived to upstream server. No errors on
error
log.

The configuration is the default nginx config plus one virtual server
and
locations as the following:

upstream filesvr {
server localhost:8888;
}

server {
listen localhost:8888;
server_name server2;
client_max_body_size 20M;
charset UTF-8;

location /some/images/ {
alias c:/images/;
}
}

server {
listen localhost:80;
server_name server1;
client_max_body_size 20M;
charset UTF-8;

location /some/images/ {
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://filesvr;
}
}

It is worth to mention that I´m trying to get this to work on windows
just
for development purposes. The deployment is on linux servers and it
actually
works as expected.

Thanks for your responses!

Posted at Nginx Forum:

Thanks for your reply however I do not see a clue of the problem I’ve
described :-(. I’ve already been there and the only thing that concerns
me
is the statement “…other modules which require shared memory support
do
not work on Windows Vista and later versions due to address space layout
randomization being enabled in these Windows versions”.

I wonder which are these “other modules” that do not work??? Do you have
any
clue about it? Please share it!

Thanks again for your response!

Posted at Nginx Forum:

I should have also mentioned that the windows version in which I’m
experiencing this problem is Windows 7.

Thanks again for your help!

Posted at Nginx Forum:

Well, I thought I have tried it before without success but I decided to
give
it a try again and it worked. Obviously something was different.

Thanks again for your help!

Posted at Nginx Forum:

Try it with IP addresses instead of names. and you are looping back into
nginx with your upstream, try a real backend.

Posted at Nginx Forum:

On Wed, Aug 13, 2014 at 11:14:35AM -0400, gmlopez wrote:

Hi there,

Thanks for your reply however I do not see a clue of the problem I’ve
described :-(.

The second sentence says “high performance and scalability should not
be expected”, which seems to match what you are reporting.

The third sentence says “nginx for Windows is considered to be a beta
version”.

I wonder which are these “other modules” that do not work??? Do you have any
clue about it? Please share it!

I suspect it is that nobody cares enough about nginx on Windows to
either
write the code, or to encourage someone else to write the code, to make
things work as well there. (Presumably, if it were simple to get things
to work well, it would already have been done.)

Cheers,

f

Francis D. [email protected]

On Wed, Aug 13, 2014 at 04:53:08PM -0400, itpp2012 wrote:

Hi there,

Where have you been? or you would have known this project
http://nginx-win.ecsds.eu/

I think it’s great that someone is scratching this itch.

Are there any plans or prospects to get the code changes merged into the
“authoritative” source?

Failing that, are there any plans to mention this project on the nginx
windows information page that was linked previously?

Neither are necessary, of course, but right now searching for “windows
site:nginx.org” doesn’t bring any obvious mention of this project. (It
is there when searching for “windows nginx”.)

Cheers,

f

Francis D. [email protected]

Francis D. Wrote:

Are there any plans or prospects to get the code changes merged into
the
“authoritative” source?

Highly unlikely, more then 2000 lines of new code, mayor changes to the
core, 3 integrated api’s, I think Igor/Maxim will have a slight
hearth-attack evaluating nearly a year of re-development :slight_smile:

Failing that, are there any plans to mention this project on the nginx
windows information page that was linked previously?

That is not up to me, nginx produce their own Windows version, you can’t
expect them to ‘support’ other versions, especially since their focus is
on
linux.

Neither are necessary, of course, but right now searching for “windows
site:nginx.org” doesn’t bring any obvious mention of this project. (It
is there when searching for “windows nginx”.)

99% of the other internet users start with Google :slight_smile:

Posted at Nginx Forum:

Francis D. Wrote:

I suspect it is that nobody cares enough about nginx on Windows to
either
write the code, or to encourage someone else to write the code, to
make
things work as well there. (Presumably, if it were simple to get
things
to work well, it would already have been done.)

Where have you been? or you would have known this project

Posted at Nginx Forum: