Welcome! Log In Create A New Profile

Advanced

Re: Index fallback?

Francis Daly
October 10, 2016 02:24AM
On Mon, Oct 10, 2016 at 12:56:57PM +0900, Edho Arief wrote:

Hi there,

untested, but...

> accessing:
> 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html
> 2. site.com/b -> redirect to site.com/b/ -> show @fallback

> As a side note,
>
> error_page 404 = @fallback;
>
> Wouldn't work because as mentioned in the previous one, it returns 403
> for #2 (directory exists, no index), not 404.

Would "error_page 403" Do The Right Thing?

(It may be that it matches more than you want it to, of course.)

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Index fallback?

Edho Arief October 09, 2016 11:58PM

Re: Index fallback?

Edho Arief October 10, 2016 02:10AM

Re: Index fallback?

Edho Arief October 10, 2016 02:20AM

Re: Index fallback?

Nurahmadie Nurahmadie October 10, 2016 02:30AM

Re: Index fallback?

Edho Arief October 10, 2016 02:42AM

Re: Index fallback?

Nurahmadie Nurahmadie October 10, 2016 02:52AM

Re: Index fallback?

Edho Arief October 10, 2016 02:56AM

Re: Index fallback?

Francis Daly October 10, 2016 02:24AM

Re: Index fallback?

Edho Arief October 10, 2016 02:28AM

Re: Index fallback?

Edho Arief October 16, 2016 04:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready