Welcome! Log In Create A New Profile

Advanced

Re: rewrite n00b

May 13, 2011 02:18PM
On Sat, May 14, 2011 at 03:02:52AM +1200, Ryan B wrote:
> Awesome thanks :)
>
> I've got this, to redirect the requests, but If I request a file from
> the orginal host, it won't redirect to the same file on the ip.
>
> rewrite ^ http://113.214.191.192 permanent;
>
> So http://domain.com/files.txt -> redirects to
> http://113.214.191.192/files.txt (without the need to specifiy each
> file name)

rewrite ^ http://113.214.191.192$request_uri? permanent;


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite n00b

fanboy May 11, 2011 10:14PM

Re: rewrite n00b

Igor Sysoev May 12, 2011 01:22AM

Re: rewrite n00b

fanboy May 13, 2011 11:04AM

Re: rewrite n00b

Igor Sysoev May 13, 2011 02:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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