"index" not working properly?

Why is this not finding index.html?

server {
listen 80;
server_name domain.com;
index index.htm index.php index.html;
root /home/mike/web/domain.com/;

if (!-e $request_filename) {
rewrite ^(.+)$ /index.htm last;
}

}

The file exists just fine, and I can access it directly by going to
domain.com/admin/index.html

However, it matches the if (!-e) check somehow… when I comment it
out, it works.

Anyone have any ideas?

On Mon, Apr 21, 2008 at 10:57:45PM -0700, mike wrote:

}

}

The file exists just fine, and I can access it directly by going to
domain.com/admin/index.html

However, it matches the if (!-e) check somehow… when I comment it
out, it works.

Anyone have any ideas?

server {
listen 80;
server_name domain.com;
index index.htm index.php index.html;
root /home/mike/web/domain.com/;

 locaiton / {
     error_page  404 = /index.htm;
 }

 locaiton = /index.htm {
 }

}