Comments (3)
I understand that the use-case would be to be able to include README
files as header/footer, but only if they exist, without letting the 404s end up being returned as part of the response. Is that right?
If that is the case, probably you want to use ngx_echo
in combination with an internal subrequest location, and handle the 404 there instead (related: #17). The way I see this it, the resources pointed to by fancyindex_header
and fancyindex_footer
must always exist (otherwise it's is a configuration error), and if more complex logic than “always include those in the response” is needed, then one should script things using internal location subrequest.
from ngx-fancyindex.
Hi @aperezdc,
Thanks for your reply.
I understand that the use-case would be to be able to include README files as header/footer, but only if they exist, without letting the 404s end up being returned as part of the response. Is that right?
Sounds correct, my use-case is for ftp mirror hosting, some projects like Ubuntu will have header/footer, but some projects don't have that.
I'm not sure if using the ngx_echo
will affect other normal access to header/footer, is it possible to let ngx-fancyindex hide the 404 without other configs?
from ngx-fancyindex.
Before deciding what to do about this issue, we need to figure out how using ngx_echo
interacts with normal access to headers and footers.
from ngx-fancyindex.
Related Issues (20)
- Second parameter to `fancyindex_header`/`fancyindex_footer` is not always optional HOT 5
- Option fancyindex_hide_parent_dir incorrectly named HOT 1
- File listing not displayed with local header. HOT 4
- Directories listing returns results in a nontraditional Alphabetical order - ALL CAPS precede mixed case or lower case HOT 4
- Feature Request: fancyindex_time_format timezone support HOT 1
- Feature Request: Docker container
- Numbered Filename sorting HOT 3
- Generated .txt files and opening this files in modal window, adding delete file button in viewinfo (copy url,close) HOT 1
- nginx server-side scripting doesn't work as intended with subrequest
- How to Remove Date row / How to get longer filenames ? HOT 5
- Test suite: ss: command not found HOT 1
- Test 12-local-footer-nested.out sometimes causes Nginx to crash HOT 2
- License ambiguity HOT 1
- Possible Bug - Fancyindex Cannot be Enabled/Disabled via Variables HOT 3
- Add class tags to header columns, similar to table columns HOT 1
- Feature Request: location string parse in fancyindex_header files
- Missing Saturday in the long_weekday array HOT 1
- Tried installing fancyindex with said building steps but failed HOT 2
- Hidden unix dot files not show with WebDav clients (e.g, davx5, davfs2), but appears in Web browser HOT 1
- File Date Incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-fancyindex.