Welcome! Log In Create A New Profile

Advanced

try_files question... or alternative?

June 18, 2013 10:24AM
Is there a simple way of getting nginx to search for the index when
given a bare directory as URL?

eg in a server block...

index index.php index.html index.htm;

when passed an URL of http://www.example.com/sub where there is no

location /sub {} block

it looks for http://www.example.com/sub/index.php etc...

Cheers,

Steve

--
Steve Holdoway BSc(Hons) MNZCS
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

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

try_files question... or alternative?

GreenGecko June 18, 2013 10:24AM

Re: try_files question... or alternative?

Francis Daly June 18, 2013 10:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
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