Welcome! Log In Create A New Profile

Advanced

index not working

Posted by samrolt 
index not working
April 13, 2012 06:22AM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready