return 404 from map module default value

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

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

        location / {
                index index.html;

so 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:,213431,213435#msg-213435

More information about the nginx mailing list