1. Caddy version (caddy version
):
v2.4.3 h1:Y1FaV2N4WO3rBqxSYA8UZsZTQdN+PwcoOcAiZTM8C0I=
2. How I run Caddy:
sudo systemctl start caddy.service
a. System environment:
OS: Ubuntu 20.04.3 LTS aarch64
Device: Raspberry Pi 4 Model B Rev 1.4
Kernel: 5.4.0-1041-raspi
b. Command:
See above how I run Caddy
c. Service/unit/compose file:
Using Systemd
d. My complete Caddyfile or JSON config:
{
debug
}
trulan.net {
# Set this path to your site's directory.
root * /var/www/wordpress
php_fastcgi 127.0.0.1:9000
encode gzip
#rewrite {
# if {path} not_match ^\/wp-admin
# to {path} {path}/ /index.php?{query}
#}
# Enable the static file server.
file_server
# Another common task is to set up a reverse proxy:
#reverse_proxy localhost:8096
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
}
jellyfin.trulan.net{ #THIS PART WORKS BOTH EXTERNAL AND INTERNAL
reverse_proxy localhost:8096
}
3. The problem I’m having:
Prior to installing wordpress I had a super simple html document that caddy ran.
This website ran with 0 flaws, but it was just a dumb html document with a couple links
Im trying to setup Wordpress with Caddy v2
I am NOT using Docker, all just on the bare metal
When going to trulan.net, I get a 404 error on Chrome and a blank page on firefox
Feel free to test that yourself, trulan.net is public
4. Error messages and/or full log output:
curl -v trulan.net
* Trying 123.243.41.74:80...
* TCP_NODELAY set
* Connected to trulan.net (123.243.41.74) port 80 (#0)
> GET / HTTP/1.1
> Host: trulan.net
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://trulan.net/
< Server: Caddy
< Date: Wed, 25 Aug 2021 05:41:39 GMT
< Content-Length: 0
<
* Closing connection 0
sudo systemctl status caddy.service
â—Ź caddy.service - Caddy
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-08-25 05:41:25 UTC; 54s ago
Docs: https://caddyserver.com/docs/
Main PID: 424023 (caddy)
Tasks: 9 (limit: 9257)
CGroup: /system.slice/caddy.service
└─424023 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
Aug 25 05:41:25 trulan caddy[424023]: {"level":"info","ts":1629870085.7417104,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/var/lib/caddy/.local/share/caddy"}
Aug 25 05:41:25 trulan caddy[424023]: {"level":"debug","ts":1629870085.7418919,"logger":"http","msg":"starting server loop","address":"[::]:443","http3":false,"tls":true}
Aug 25 05:41:25 trulan caddy[424023]: {"level":"debug","ts":1629870085.742048,"logger":"http","msg":"starting server loop","address":"[::]:80","http3":false,"tls":false}
Aug 25 05:41:25 trulan caddy[424023]: {"level":"info","ts":1629870085.7420855,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["jellyfin.trulan.net","trulan.>
Aug 25 05:41:25 trulan caddy[424023]: {"level":"debug","ts":1629870085.7434876,"logger":"tls","msg":"loading managed certificate","domain":"jellyfin.trulan.net","expiration":1637559042,"iss>
Aug 25 05:41:25 trulan caddy[424023]: {"level":"info","ts":1629870085.7453785,"logger":"tls","msg":"finished cleaning storage units"}
Aug 25 05:41:25 trulan caddy[424023]: {"level":"debug","ts":1629870085.7811797,"logger":"tls","msg":"loading managed certificate","domain":"trulan.net","expiration":1637103031,"issuer_key":>
Aug 25 05:41:25 trulan caddy[424023]: {"level":"info","ts":1629870085.7827427,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Aug 25 05:41:25 trulan systemd[1]: Started Caddy.
Aug 25 05:41:25 trulan caddy[424023]: {"level":"info","ts":1629870085.7835133,"msg":"serving initial configuration"}
5. What I already tried:
Iv tried tweaking my caddyfile config file after multiple google searches to try and be better but I feel like its another issue.
I did originally start this using a guide thats for Caddy v1
https://computingforgeeks.com/host-wordpress-website-with-caddy-web-server/
6. Links to relevant resources:
None aside from above tutorial that I started with