Welcome! Log In Create A New Profile

Advanced

Problems with rewrite

July 21, 2010 03:10PM
I'm having problems with rewrite, I have to download the Apache server for a current ngix but I'm finding some errors with rewrite

#NGINX
rewrite ^/http-bind/ http://www.xxx.com:1010/http-bind/ break;
rewrite ^/ws-chat/(.*)$ http://yyy.xxx.com/$1 break;

www.dominio.com/http-bind/ -> http://www.xxx.com:1010/http-bind/
www.dominio.com/ws-chat/ -> http://yyy.xxx.com/$1


Upon request it changes the field, he must not change as it is done in the apache example below.


#APACHE
RewriteRule ^/http-bind/ http://www.xxx.com:1010/http-bind/ [P]
RewriteRule ^/ws-chat/(.*)$ http://yyy.xxx.com/$1 [P,QSA]

www.dominio.com/http-bind/ -> www.dominio.com/http-bind/
www.dominio.com/ws-chat/ -> www.dominio.com/ws-chat/


thanks
Subject Author Posted

Problems with rewrite

jefersonph July 21, 2010 03:10PM

Re: Problems with rewrite

jefersonph July 22, 2010 01:12PM

Re: Problems with rewrite

edogawaconan July 22, 2010 01:44PM

Re: Problems with rewrite

jefersonph July 22, 2010 03:39PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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