Followed the guide for Caddy and nothing works. #32
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I use Arch btw.
Installed PHP packages:
Main page works
Instance browser page works, but there's no successful requests.
Search doesn't work
My Caddyfile:
any error logs?
Where can I get them?
As I see, there are no any logs in /var/log or anywhere else.
Please setup logging rules
https://caddyserver.com/docs/caddyfile/directives/log
and tell me if it logs any PHP errors. From there I will be able to help you
Closing as I didn't get any feedback from OP
I'd like to expand on this, since I'm having a similar issue; 4get acting weird. It most likely is something about the Caddyfile, but yeah. Nginx works fine, but when it comes to Caddy it just throws a blank page and a prompt to download if
web?s=
is present in the URL.Here's the file:
port
is, well, a port.Log:
@cynic
i'm not a caddy guy, but with the described behavior my IT monkey debug procedure would be
what happens if you download when it prompts you? if it's the .php file your fpm is fucked one way or another, i bet
what happens if you make requests to the actual php endpoints? e.g. /web.php. if that works but the other thing doesn't, i guess your redirect is blowing it somehow?
i presume the index loads fine? if not make sure the root is correct
it looks like the config 301s /web to /web.php? this isn't really a config error but it is an interesting difference between the sample configs, now that i look at them.
probably not helpful but 's all i got on short notice. if you can't get it figured out hit up diowo, i think he wrote this caddy config originally. shoutout nginx, ain't never let me down.
alright, for some reason, it works but only if you go to
/index.php
firstand no, the plain url is 404, but appears as a blank page if using firefox-based browsers, for chromium it just straight up shows 404
my guess here is that the index is set wrong, but i could be wrong
4got to update,
The fix I found was to set
to
while also commenting out the
index index.php
line.