1. Caddy version lastest
2. How I run Caddy:
OSX w/
{
servers {
protocol {
experimental_http3
}
}
}
localhost:8080 {
root * ./www
log {
output file ./log/80access.log {
roll_size 3MiB
roll_keep 5
roll_keep_for 48h
}
format console
}
encode zstd gzip
php_fastcgi localhost:9000
tls {
protocols tls1.3
}
rewrite {
to {path} {path}/ /index.php?{query}
}
}
a. System environment:
OSX and PHP 8.x
### 3. The problem I'm having:
I submit a form:
<html>
<body>
<form action="welcome.php" method="POST">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
</body>
</html>
to wellcome.php
<html>
<body>
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
var_dump($_GLOBALS);
var_dump( $_POST );
</body>
</html>
But it does not show the name and email.
I'm Java and Nodejs new to caddy+PHP
### 5. What I already tried:
I googled and tried stack exchanged, tried changing caddy file.
Help please.