Thanks for your help, I have asked my host to try if this works for us. The solution they finally came up with that seems to work is this: if ($request_uri ~ /([^/?]+)(\?[^?]+)?$) { set $document_name $1; }by maarten00 - Ideas and Feature Requests
We have recently migrated from a server with Apache to an nginx server, but we are running into problems with the current implementation of SSI in nginx. Specifically, the problem we have is that the DOCMENT_NAME variable is currently missing. Here I can see that it is listed as a todo: https://github.com/nginx/nginx/blob/master/src/http/ngx_http_variables.c#L143 We are looking for someone toby maarten00 - Ideas and Feature Requests