-----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-----
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx