Hi,

I have this rule in my nginx config file

	location ~* \/(fileA.txt|fileB.txt)$ {
		return 404 'nothing here';
	}

but it’s not working

but

	location /fileA.txt {
		return 404 'nothing here';
	}

is working…

Any idea what’s wrong ?

Thanks.

  • Rick_C137@programming.devOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    Never mind, I understood my mistake… This nginx built didn’t come with ngx_http_rewrite_module so return will not works.

    • Rick_C137@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Apparently ngx_http_rewrite_module “module” is installedby default with nginx… damn thay should use diffrent terms for what could be install or not at compile time…