My wordpress has a couple of images uploaded that have special characters in their file names.
For example: wp-content/uploads/2015/06/cambios-antes-y-después-de-hacer-ejercicio.jpg
I see in my access.log
that nginx is looking for the file like this GET /wp-content/uploads/2015/06/cambios-antes-y-despu%C3%A9s-de-hacer-ejercicio.jpg/ HTTP/1.1" 200"
I do get a 200
response served by the wordpress index.php
. But I don't get the file that I actually want.
The actual filename on linux is without unicodes cambios-antes-y-después-de-hacer-ejercicio.jpg
.
My location directive:
location / {
try_files $uri $uri/ /index.php?$query_string;
}