vendredi 10 mars 2017

How to set up Nginx to serve image files without extension

I am trying to develop a very simple image server with nginx but I haven't been able to set up the right configuration yet.

The idea is that I am saving images without the file extension (i.e. that a file named "image1.png" is saved as "image1")

Moreover I would like nginx to render the image on the web browser when I type the url mypath/image1

So is it possible to set up an Nginx config to do what I want?




Aucun commentaire:

Enregistrer un commentaire