"index" not working properly?

mike mike503 at gmail.com
Tue Apr 22 09:57:45 MSD 2008

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

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

Anyone have any ideas?

More information about the nginx mailing list