Welcome! Log In Create A New Profile

Advanced

Re: htaccess conversion nginx

Nginx User
February 19, 2012 03:48PM
On 19 February 2012 15:18, rooxy <nginx-forum@nginx.us> wrote:
> nginx: [emerg] directive "rewrite" is not terminated by ";" in
> /usr/local/nginx/

Whenever '{' and '}' appear in a rewrite, the rewrite must be enclosed
in quotation marks.

So change the rewrites to ...

rewrite '^/([0-9a-zA-Z]{1,6})$' /links/?to=$1 last;
rewrite '^/([0-9]{1,9})/banner/(.*)$' /links/?uid=$1&adt=2&url=$2 last;
rewrite '^/([0-9]{1,9})/(.*)$' /links/?uid=$1&adt=1&url=$2 last;

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

htaccess conversion nginx

rooxy February 19, 2012 07:02AM

Re: htaccess conversion nginx

Edho Arief February 19, 2012 07:10AM

Re: htaccess conversion nginx

rooxy February 19, 2012 07:18AM

Re: htaccess conversion nginx

Edho Arief February 19, 2012 07:24AM

Re: htaccess conversion nginx

rooxy February 19, 2012 07:29AM

Re: htaccess conversion nginx

Edho Arief February 19, 2012 07:36AM

Re: htaccess conversion nginx

rooxy February 19, 2012 03:43PM

Re: htaccess conversion nginx

Nginx User February 19, 2012 03:48PM

Re: htaccess conversion nginx

rooxy February 19, 2012 04:15PM

Re: htaccess conversion nginx

Nginx User February 19, 2012 04:56PM

Re: htaccess conversion nginx

António P. P. Almeida February 19, 2012 06:36PM



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