Giter Site home page Giter Site logo

Comments (4)

PhrozenByte avatar PhrozenByte commented on August 11, 2024

Letting Pico handle requests to Pico's internal files like config is neither more nor less secure than passing it to nginx; the only difference is that the latter exposes the existence of these directories, because they are treated differently than any other non-existing files/dirs.

Not sure why you were experiencing this issue; did you try removing the error_page directive? Configuring nginx is a very extensive subject and you often get unexpected results.

from picocms.github.io.

ohnonot avatar ohnonot commented on August 11, 2024

did you try removing the error_page directive?

yes, i did.
Set up as above, it will give me generic 404 messages.
If however I use try_files /index.php$is_args$args =404; (as in the config example) instead of return 404;, i'm back at the strange behavior of being offered index.php to download.
I have been shifting around the location blocks and trying things for another hour or so, I can't get to the bottom of it.

The way it is now works well for me; I'd just like to understand why it doesn't work as per documentation. Does it work for you?

from picocms.github.io.

PhrozenByte avatar PhrozenByte commented on August 11, 2024

Unfortunatly I'm not using nginx and don't have much experience with it, the nginx docs were written by @smcdougall. However, at the time of writing, it worked as expected. No idea what's wrong there 😒

from picocms.github.io.

stale avatar stale commented on August 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! 👍

from picocms.github.io.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.