preventing rewrite loops with "index"

Piotr Sikora piotr.sikora at
Mon Jan 25 00:45:32 MSK 2010

> 2. Note "internal" in location /users/.  It means "only visible
> for internal redirects", so even user called "users" should be
> correctly processed by the first location.

Actually, this isn't true. Any attempt to access internal location results 
in 404 response.

You can verify this with very simple configuration:

server {
    listen 8000;
    location / { return 500; }
    location /x { internal; return 500; }

Accessing /x will result in 404 response. This is a bug and it's somewhere 
on my TODO list.

Best regards,
Piotr Sikora < piotr.sikora at >

More information about the nginx mailing list