rewrite n00b
Igor Sysoev
igor at sysoev.ru
Fri May 13 22:16:51 MSD 2011
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
More information about the nginx
mailing list