Welcome! Log In Create A New Profile

Advanced

Re: return 404 from map module default value

August 05, 2011 10:46AM
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?
Subject Author Posted

return 404 from map module default value

zflairz August 05, 2011 09:21AM

Re: return 404 from map module default value

Maxim Dounin August 05, 2011 09:30AM

Re: return 404 from map module default value

Igor Sysoev August 05, 2011 09:34AM

Re: return 404 from map module default value

zflairz August 05, 2011 10:46AM

Re: return 404 from map module default value

Igor Sysoev August 05, 2011 11:46AM

Re: return 404 from map module default value

zflairz August 05, 2011 09:53PM

Re: return 404 from map module default value

António P. P. Almeida August 05, 2011 10:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready