-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
"no such file or directory" with handle_response #884
"no such file or directory" with handle_response #884
Comments
It looks like you are missing a file with the name |
It's a standard Symfony application with no special setup ( The same Caddyfile works if I just use {
"level": "debug",
"ts": 1719297596.3831573,
"logger": "http.handlers.rewrite",
"msg": "rewrote request",
"request": {
"remote_ip": "172.27.0.1",
"remote_port": "45516",
"client_ip": "172.27.0.1",
"proto": "HTTP/3.0",
"method": "GET",
"host": "test.localhost",
"uri": "/",
"headers": {
"User-Agent": [
"Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Sec-Fetch-Mode": [
"navigate"
],
"Cookie": [
"REDACTED"
],
"Sec-Fetch-Dest": [
"document"
],
"Sec-Fetch-Site": [
"cross-site"
],
"Priority": [
"u=1"
],
"Accept-Encoding": [
"gzip, deflate, br, zstd"
],
"Accept-Language": [
"de,en-US;q=0.7,en;q=0.3"
],
"Alt-Used": [
"test.localhost"
]
},
"tls": {
"resumed": true,
"version": 772,
"cipher_suite": 4865,
"proto": "h3",
"server_name": "test.localhost"
}
},
"method": "GET",
"uri": "/index.php"
} |
If you look at your logs:
You've got something looking for the filename of |
That's why there's a I thought after caddyserver/caddy#6232 was merged and 1.2 is based on Caddy 2.8 everything should be in place now. Anyways, how is it supposed to work? There are no examples to start from, except for Caddy's, which only work with FastCGI. |
I added some docs for this feature: #896 |
What happened?
Is this how
handle_response
is supposed to be working now (config taken from the official Caddy docs)?(Follow-up on #365)
Because with this config (everything exactly the same except for
php_server
) I get an error on requests.Funny enough not even
php_server
with onlyroot
works.Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Expand
Relevant log output
The text was updated successfully, but these errors were encountered: