return 404 from map module default value

zflairz nginx-forum at nginx.us
Fri Aug 5 14:46:26 UTC 2011


I think I need "location ~* ^/.+" instead of "location /" because I have
this:

        location / {
                index index.html;
        }

so www.example.com will read /index.html, while in the case of "location
/", it can't find / in mapping, then return 404. Am I right?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213431,213435#msg-213435



More information about the nginx mailing list