-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Default to index.html or index.php #23
Comments
I got it to work. Ensure php-fpm has started. My Caddyfile looks like this
Hope this helps. |
Thanks Abiola, this is not working with Caddy Win x86, it outputs this error: |
That's interesting @devil1591. It means that more than one middleware thinks it has the floor. In other words, either:
What kind of response was the client seeing? An error, or a page successfully served? |
The error is |
Do you have Go installed? Could you change line 119 of fastcgi.go to: return 0, nil Because I suspect that php-fpm is giving 404 and writing "No input file specified" but the fastcgi handler is incorrectly returning the 404, signaling to Caddy that it needs to handle the error by writing "404 Not Found" - in this case, Caddy should not add anything to the response... (If you don't have Go, just let me know, I can whip up a binary for you real quick.) |
@devil1591 what is your middleware stack ? It could probably be a bug not limited to windows. |
@devil1591 No problem. Here's a modified binary. I wouldn't expect it to fix the index file issue, but it should no longer say "multiple response.WriteHeader calls" - can you confirm that? |
That's right, the error is now |
Awesome - 1 down, 1 to go. @devil1591 Now I need some more details. Could you paste the contents of your Caddyfile? And also the URL exactly as it appears in your browser when that message appears? I need to make sure it ends with a forward slash |
I confirm that Caddy 0.5.1 fixes the index file issue.
I used both 0.0.0.0 and 192.168.10.66 because 0.0.0.0 wasn't working. |
@devil1591 glad to hear that. The are few new improvements to FastCGI middleware coming in the next release. Stay tuned. |
Can't find this in documentation, there is no default index file like index.html.
The php preset for fastcgi
index index.php
isn't working, at least on Windows x86.Thanks for this very nice project :)
The text was updated successfully, but these errors were encountered: