Serve a specific file to any request for a filetype?

by Kate Lawson   Last Updated July 12, 2019 14:00 PM - source

I would like any request for a .php or a .dat file to return a specific file. Regardless of a) which domain (I have several sites on different domains) and b) where in the directory structure the request is coming from.

What's the simplest way to achieve this?

Tags : nginx


Related Questions



nginx location not opening static site

Updated August 03, 2019 14:00 PM


Nginx: alias and try_files with $args

Updated March 26, 2015 14:00 PM