-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/index results in a file download with Nginx #350
Comments
I'm currently trying to reproduce your issue, but I'm not seeing this behavior. We did see it a lot when we were debugging our Nginx documentation, and it was usually related to a Regex rule being above PHP, causing the page to never actually get sent to One thing I'm seeing is that you don't have an @PhrozenByte, do you see any glaring issues that could be causing this behavior? |
@smcdougall: @Lartza initially pictured this issue on IRC and I wasn't able to solve it, so I suggested him to open this issue. I thought it would be best to let our nginx experts help him 😃 |
I'm far from an expert. 😖 I tested the two location blocks and they seem to work fine. When I tested it, I had to change the location of |
Okay, so I guess my question would be what file is downloaded? Is it Pico's The only thing I can think is that |
Oh wait.... I think I derp-ed a bit here... I've had the wrong Okay, without any more info, I'd definitely say that it sounds like you've got a static file called Sorry, I've got to go for now, but I'll check back later. Let me know if this helps, and if not I'll try to work on it some more. |
index index.html index.htm index.php is defined in nginx.conf, I didn't see a difference defining index index.php; in the Pico config. The file was surely pico, pico->run() or something like that and everything. But the "problem" now is that the site works :P I rebooted my PC but otherwise nothing hasn't really changed. I think this was a cache (browser or CloudFlare) issue, even though that sounds a bit weird to me. But I can't think of anything else? |
Okay. I figured you had I'm sure @PhrozenByte has told you, but our Nginx Configuration page is quite new and was written by a user who's far from an Nginx expert (Me 😆). It's got a decent amount of information though. There's also the discussion we had about it at #343. If it was a cache issue, it could have been an issue with Nginx's cache, not your browser or CloudFlare. Nginx could have been caching its original index file at Glad you've got it working now. We'll be around to try to help more if the issue comes up again. 😃 |
Pico 1.0 and nginx 1.10.0 (mainline, but it currently matches stable)
I got Pico with rewriting working otherwise it seems, but the /index links that Pico creates for the front page are not passed to php-fpm and get downloaded instead. /, /sub, /sub/page etc. all work
Below is my current config, a bit cluttered but I wanted to be thorough. The other server blocks shouldn't matter though.
The text was updated successfully, but these errors were encountered: