You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't tried to use SSI for headers/footers myself for years, but it should work. Internally fancyindex_header and fancyindex_footer perform an internal Nginx subrequest, so you have to make sure that the locations to which they point has SSI enabled with:
ssi on;
Also, if your header and footer files are going to be the same global ones for all directory listings (and not files inside the directory being listed), it's a good idea to use a separate location block for for them, so you don't need to have SSI enabled globally (beware, snippet untested):
Can you please double-check that you are enabling SSI, and that the location from where the .shtml files are loaded is processing SSI correctly? You can try loading one of your .shtml file with curl from the command line, to see if Nginx is processing them without adding Fancyindex in the mix.
Hi,
could you explain where to find information on how to have SSIs (server side includes) as footer or header using
ngx-fancyindex
?I tried the obvious
The files exist and worked like that in Apache 2.2. However, it appears as if the header and footer are not being processed by the SSI module.
Any ideas?
Thanks in advance and thanks also for your module.
btw: I am using the version of the module which is included in Ubuntu 16.04.
The text was updated successfully, but these errors were encountered: