I'm trying to process GIFs, PHPs and 404 all else and also have / -> /index.php
When I try this: (simplified)
server {
index index.php;
location ~* \.gif$ { expires 1d; }
location / { return 404; }
location ~* \.php$ { ... }
}
This gives a 404 for / as the index command does not seem to work as I expect
Thanks