Rewrite Performance Question

Juergen Gotteswinter jg at internetx.de
Mon Jul 19 13:59:03 MSD 2010


Hi,

come some take a look at these rewrite rules if they are ok regarding
performance?


        if ($host = 'forum.de' ) {
            rewrite ^/(.*)$ http://www.forum.de:81/$1 permanent;
        }

        if ($host ~* ^(www\.)??forum\.(at|ch|com|eu|info|net|org)) {
            rewrite ^(.*)$ http://www.forum.de:81 last;
        break;
        }
   }


Thanks :)

Juergen



More information about the nginx mailing list