Welcome! Log In Create A New Profile

Advanced

forcing proxy-throughput

Flavio Torres
September 07, 2010 09:08AM
-----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
Subject Author Posted

forcing proxy-throughput

Flavio Torres September 07, 2010 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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