1. Caddy version (caddy version
):
V2.2.1
2. How I run Caddy:
Caddy run
a. System environment:
macOS Catalina
b. Command:
Caddy run
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
www.fuzavue.com, fuzavue.com {
root * /Applications/MAMP/htdocs/fuzavue
encode gzip
log {
output file /Users/glen/var/log/caddy/fuzavue.log
}
#push {
#}
php_fastcgi / 127.0.0.1:9000
file_server
}
3. The problem I’m having:
Website only loads static home page. All over pages just load a white screen
4. Error messages and/or full log output:
Not seeing any errors, but here’s the log for the homepage
Homepage:
{"request": {"remote_addr": "66.235.50.186:49314", "proto": "HTTP/2.0", "method": "GET", "host": "fuzavue.com", "uri": "/", "headers": {"User-Agent": ["Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Mobile/15E148 Safari/604.1"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], "Accept-Language": ["en-us"], "Accept-Encoding": ["gzip, deflate, br"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "fuzavue.com"}}, "common_log": "66.235.50.186 - - [03/Nov/2020:20:12:17 -0800] \"GET / HTTP/2.0\" 200 31198", "duration": 0.010460012, "size": 31198, "status": 200, "resp_headers": {"Content-Type": ["text/html; charset=UTF-8"], "X-Wp-Cf-Super-Cache": ["cache"], "X-Wp-Cf-Super-Cache-Active": ["1"], "X-Powered-By": ["PHP/7.4.11"], "Link": ["<https://fuzavue.com/index.php/wp-json/>; rel=\"https://api.w.org/\""], "X-Wp-Cf-Super-Cache-Cache-Control": ["s-max-age=604800, s-maxage=604800, max-age=60"], "Content-Encoding": ["gzip"], "Server": ["Caddy"], "Hummingbird-Cache": ["Served"], "Vary": ["Accept-Encoding, Cookie", "Accept-Encoding"], "Cache-Control": ["s-max-age=604800, s-maxage=604800, max-age=60"]}}
———————/-//////———
Log for example page (not homepage)
handled request {“request”: {“remote_addr”: “66.235.50.186:49302”, “proto”: “HTTP/2.0”, “method”: “GET”, “host”: “fuzavue.com”, “uri”: “/index.php/about-the-fuzavue/”, “headers”: {“User-Agent”: [“Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Mobile/15E148 Safari/604.1”], “Accept-Language”: [“en-us”], “Referer”: [“https://fuzavue.com/”], “Accept”: [“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”], “Accept-Encoding”: [“gzip, deflate, br”]}, “tls”: {“resumed”: false, “version”: 772, “cipher_suite”: 4865, “proto”: “h2”, “proto_mutual”: true, “server_name”: “fuzavue.com”}}, “common_log”: “66.235.50.186 - - [03/Nov/2020:20:10:42 -0800] “GET /index.php/about-the-fuzavue/ HTTP/2.0” 404 0”, “duration”: 0.000266074, “size”: 0, “status”: 404, “resp_headers”: {“Server”: [“Caddy”]}}
5. What I already tried:
It used to work before I converted to caddy v2. I used to have this code in my v1 caddyfile. Not sure if it’s related to this:
rewrite / {
to /index.php?q={query}