Welcome! Log In Create A New Profile

Advanced

Re: args and rewrite vars always empty

User via nginx
May 24, 2019 04:56AM
On 5/24/19 8:41 AM, Patrick wrote:
> Use 'break' instead of 'last' as per
>
> https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite

Unfortunately, it did not help. A small addition. Only try_files lose
$args, rewrite show args at error_logs with following request:

domain.com/product/android/?arg=test

But the problem that it does not fill $1 variable from (.*) ( $1 must be
"android"). But as seen at the logs, (.*) matches the url.

This rewrite now:  rewrite ^/pics/(.*)/$ /$1 break;

Always redirect to index page, because it never try to load "android"
file :(

Thanks


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

args and rewrite vars always empty

User via nginx May 24, 2019 04:28AM

Re: args and rewrite vars always empty

Patrick May 24, 2019 04:42AM

Re: args and rewrite vars always empty

User via nginx May 24, 2019 04:56AM

Re: args and rewrite vars always empty

Maxim Dounin May 24, 2019 05:52AM

Re: args and rewrite vars always empty

User via nginx May 24, 2019 06:44AM

Re: args and rewrite vars always empty

Maxim Dounin May 24, 2019 07:40AM

Re: args and rewrite vars always empty

User via nginx May 24, 2019 07:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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