forcing proxy-throughput

Flavio Torres fla_torres at yahoo.com.br
Tue Sep 7 17:03:58 MSD 2010


-----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-----





More information about the nginx mailing list