Welcome! Log In Create A New Profile

Advanced

Re: Nginx rewrite question

March 29, 2011 05:40AM
On Tue, Mar 29, 2011 at 01:39:05AM -0400, jinjun502 wrote:
> Hello
> I want to konw nginx rewrite ,how to write rewrite /indxe.htm to
> /dir/
> ex: http://xxxx.com/index.htm redirecting http://xxxx.com/

location = / {
try_files $uri/index.htm =404;
root /path/to/files;
}

location = /index.htm {
return 301 http://xxxx.com/;
}


--
Igor Sysoev
http://sysoev.ru/en/

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

nginx rewrite question

Juergen Gotteswinter July 09, 2009 04:35AM

Re: nginx rewrite question

Igor Sysoev July 09, 2009 04:40AM

Re: Nginx rewrite question

Igor Sysoev March 29, 2011 05:40AM

Re: Nginx rewrite question

jinjun502 March 29, 2011 08:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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