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.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [S] 2 points 1 year ago* (last edited 1 year ago) (1 child)

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

  • source
  • hideshow 1 child comment