Welcome! Log In Create A New Profile

Advanced

forwarding static requests to other servers

Posted by xeelee 
forwarding static requests to other servers
April 07, 2010 04:03PM
Hello

I have 3 servers:

app : application server (domain.net)
st1 : static content server (st1.domain.net)
st2 : static content server (st2.domain.net)

st1 and st2 are updated from app server with rsync and contains only 3 directories : /img /js and /css

how to setup nginx for redirecting url's like http://domain.net/img/header.jpg to

http://st1.domain.net/img/header.jpg
http://st2.domain.net/img/header.jpg

in round robin mode?

i don't want to reduce load on app, rather use multiple servers with different domains to serve static content for pararell download

if not with nginx, what should i search?
Re: forwarding static requests to other servers
April 07, 2010 08:43PM
See http://wiki.nginx.org/NginxHttpUpstreamModule.

--
Jim Ohlstein
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
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