Php query string is not showing

1. The problem I’m having:

I am trying to move a php booking application (bookedscheduler) from Apache to Caddy.
But I can not make the query string work.

With Apache:
When I go to and click on a room to book time.
I get and all is good.

With Caddy:
When I go to and click to pick a room.
I get

Notice the query string is missing, I am not sure if this is a php.ini, caddyfile or code issue.
Any pointers in the right direction will be welcome.

2. Error messages and/or full log output:

3. Caddy version:


4. How I installed and ran Caddy:

Debian package from the repo

a. System environment:

OS: Ubuntu 22.04.3 LTS x86_64
PHP: 8.1.2-1ubuntu2.14

b. Command:

systemctl restart caddy

c. Service/unit/compose file:

d. My complete Caddy config:


  log default {
    output file /var/log/caddy/caddy.log
      format console {

(common) {
  header /* {
} {
  import common
  root * /var/www/html/booked/
  encode zstd gzip
  php_fastcgi unix//run/php/php8.1-fpm.sock

  handle_path /stats* {
    root * /var/www/html/goaccess
    encode gzip

  log {
      output file /var/log/caddy/booking.log

5. Links to relevant resources:

Where are you seeing this? Enable the debug global option and show your logs. Make an example request with curl -v.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.