1. The problem I’m having:
Hi,
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 https://apache.domain.ca/Web/schedule.php
and click on a room to book time.
I get https://apache.domain.ca/Web/reservation/?rid=329&sid=4&rd=2023-08-30&sd=2023-08-30%2010%3A30%3A00&ed=2023-08-30%2011%3A00%3A00
and all is good.
With Caddy:
When I go to https://caddy.domain.ca/Web/schedule.php
and click to pick a room.
I get https://caddy.domain.ca/Web/reservation/
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:
v2.7.4
4. How I installed and ran Caddy:
Debian package from the cloudsmith.io 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:
{
#debug
email tech@caddy.domain.ca
log default {
output file /var/log/caddy/caddy.log
format console {
time_local
}
}
}
(common) {
header /* {
-Server
}
}
caddy.domain.ca {
import common
root * /var/www/html/booked/
encode zstd gzip
file_server
php_fastcgi unix//run/php/php8.1-fpm.sock
handle_path /stats* {
root * /var/www/html/goaccess
encode gzip
file_server
}
log {
output file /var/log/caddy/booking.log
}
}