With Apache the directive DirectoryIndex index along with DefaultType application/x-httpd-php within a particular vhost worked quite well to exclude a file extension from index files without rewriting. How can I duplicate this in Nginx? So far all I’ve been able to find is regex rewriting solutions.
With Apache the directive DirectoryIndex index along with DefaultType application/x-httpd-php within a particular vhost
Share
The .conf file would look something like this:
the line
try_files $urishould try the files without extensions on the backend