August 13, 2014 11:09AM
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!
Subject Author Posted

reverse proxy images - windows

gmlopez August 12, 2014 09:26PM

Re: reverse proxy images - windows

itpp2012 August 13, 2014 04:51AM

Re: reverse proxy images - windows

gmlopez August 13, 2014 11:09AM

Re: reverse proxy images - windows

gmlopez August 13, 2014 11:15AM

Re: reverse proxy images - windows

itpp2012 August 13, 2014 12:22PM

Re: reverse proxy images - windows

gmlopez August 13, 2014 02:38PM

Re: reverse proxy images - windows

Valentin V. Bartenev August 13, 2014 05:28AM

Re: reverse proxy images - windows

gmlopez August 13, 2014 11:14AM

Re: reverse proxy images - windows

Francis Daly August 13, 2014 04:36PM

Re: reverse proxy images - windows

itpp2012 August 13, 2014 04:53PM

Re: reverse proxy images - windows

Francis Daly August 13, 2014 07:58PM

Re: reverse proxy images - windows

itpp2012 August 14, 2014 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready