Welcome! Log In Create A New Profile

Advanced

Re: How to rewrite this on nginx?

April 16, 2010 02:42AM
On Mon, Apr 12, 2010 at 12:02 PM, lhmwzy <lhmwzy@gmail.com> wrote:
> apache .htaccess
>
> Rewriteengine on
> Rewriteengine ^search\.shtml$  /search.cgi%{QUERY_STRING}
> Rewriteengine  ^([^.]*)/([^.]*)/([^.]*]\.html$ index.cgi?t=$1&c1=$1&p=$3
>

location = /search.shtml {
rewrite ^ /search.cgi?$args;
}

location ~ ^[^.]*/[^.]*/[^.]*\.html$ {
rewrite ^/([^.]*)/([^.]*)/([^.]*]\.html$ /index.cgi?t=$1&c1=$1&p=$3;
}

smarter way would be by replacing the rewrites with direct fastcgi (or
proxy) settings


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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

How to rewrite this on nginx?

lhmwzy April 12, 2010 01:08AM

Re: How to rewrite this on nginx?

lhmwzy April 16, 2010 02:30AM

Re[2]: How to rewrite this on nginx?

Denis F. Latypoff April 16, 2010 02:42AM

Re: How to rewrite this on nginx?

edogawaconan April 16, 2010 02:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready