October 08, 2010 07:56AM
Hi

As far as I know body content rewriting it's not possible with nginx, I may be wrong, i'm a newbie with nginx.
What nginx supports is URL rewriting through HttpRewrite module and this has nothing to do with returned body content rewriting.

URL Rewriting works when nginx receives a requests, it parses the URL requested and rewrite as appropiate according to your rules. At this point the call have not been made to the real request. It doesn't matter where the real call (after rewriting is done) is then sent, be it reverse proxy, static, fcgi daemon, whatever you want.

What do you want is to rewrite the content that the backends returns, that's not something you can do with the HttpRewrite module.

What indeed you can do to solve your problem is to setup nginx to accept ssl connections for that site, let the login form send users to ssl and inside ssl server config in nginx place a 301 redirect to your http server.

Cheers

Guzman
Subject Author Posted

Reverse proxy and html rewrite

Manuel Vacelet October 07, 2010 07:48AM

Re: Reverse proxy and html rewrite

valor October 08, 2010 07:56AM

Re: Reverse proxy and html rewrite

rupaz January 05, 2011 11:05PM

Re: Reverse proxy and html rewrite

António P. P. Almeida October 08, 2010 10:06AM

Re: Reverse proxy and html rewrite

António P. P. Almeida October 08, 2010 10:16AM

Re: Reverse proxy and html rewrite

valor October 08, 2010 10:24AM

Re: Reverse proxy and html rewrite

Manuel Vacelet October 14, 2010 05:16AM

Re: Reverse proxy and html rewrite

SplitIce January 06, 2011 12:06AM

Re: Reverse proxy and html rewrite

rupaz January 06, 2011 12:16AM

Re: Reverse proxy and html rewrite

toto2008 January 16, 2011 04:37PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready