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 n
On 5/24/19 9:50 AM, Maxim Dounin wrote:
> The first line shows actual matching - regular expression itself
> and the string it matches, and the second one shows the result.
> The above two lines were obtained with the following trivial
> configuration:
Yes, thanks. I clearly understand it all. I
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
Hello,
I'm trying to make simple rewrite to work and found that $args and other
$1 vars from rewrite&try_files are always empty.
nginx version: nginx/1.10.3
Server config:
location /product/ {
rewrite ^/product/(.*)/$ /$1.txt last;
# try_files $uri/ /test.php?test=$uri; # tries, the