Forcing proxy-throughput

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Please, I would like to know how can I rewrite and force proxy with
nginx.

For example:

server-nginx -> IIS-server (CMS)

Web URL: www.site.com/news/title-subtitle/12.html

    • rewrite and force proxy to IIS-server

Inside CMS: www.site.com/news.asp?cod=12

With apache, I’m using Rewrite with [P] flag:

RewriteRule ^/([_a-zA-Z0-9-+]+)/([a-zA-Z0-9-+,]+)/([0-9]+).html$
http://www.intranet.com.br/$1.asp?cod=$3 [P]

But, would be nice do that with nginx. I asked in #IRC, people says to
use try_files, but I’m not sure about this trick. Is there a way ?

thank you guys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyGODwACgkQNRQApncg295iqwCfcqkIPximoOMRi/Ry8CF5Q4Hm
0xkAoJLYEIcBina/Hb5dC3N+uS/LTCqW
=TB+l
-----END PGP SIGNATURE-----

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