Welcome! Log In Create A New Profile

Advanced

Re: args and rewrite vars always empty

User via nginx
May 24, 2019 07:52AM
On 5/24/19 11:38 AM, Maxim Dounin wrote:
> There is no special $0 variable in nginx, and the above
> configuration is expected to produce:
>
> nginx: [emerg] unknown "0" variable
>
> error on start (just checked with 1.10.3 to be sure).

Thanks! I found my mistake. I'm so stupid :) I generate my nginx hosts
file with bash script and it execute this vars $1 at the generation
time. Thank you for your time and help again. Maybe you can also suggest
what is better for performance purposes: rewrite or try_files ? In my
case I want only to make friendly SEO urls, there will be no files at
/products/ directory. It's full virtual dir.

_______________________________________________
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: 296
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