aperezdc / ngx-fancyindex

Fancy indexes module for the Nginx web server
Other
857 stars 127 forks source link

nginx server-side scripting doesn't work as intended with subrequest #129

Open ahmubashshir opened 3 years ago

ahmubashshir commented 3 years ago

GET /requested/path/ with nginx server-side scripting

<title>Files <!--# echo var="document_uri" default="" --></title>

would generate.

<title>Files /requested/path/</title>

but it generates

<title>Files /static/header.html</title>

after configuring fancyindex header with subrequest. it'd be great if we could access original request properties as something like $fancyindex_var_<orig-var> or $http_x_fancyindex_<var>