Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

404 with Caddy server

Started by Muut Archive 11 years ago · 2 replies · 1254 views
11 years ago

I have a 404 error when attempting to use the admin pages. I am using Caddy web server(https://caddyserver.com/docs) and the site itself showed up just fine until I installed the admin panel. I added a rewrite directive, but still no go. Please help!

11 years ago

Where do you guys find these webservers :) Never heard of that one.

Basically the rewrite Grav needs is the same as WordPress or Joomla. So if you can find a rewrite configuration for that, it should work fine for Grav also.

11 years ago

ok installed it and got it working with this config:

TXT
localhost:8080
gzip
fastcgi / 127.0.0.1:9000 {
    ext   .php
    split .php
    index index.php
}
rewrite {
    regexp .*
    ext    /
    to     /index.php?_url={uri}
}

Of course you have to have php-fpm installed and running on port 9000 to work.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2288 9 years ago
Archive · by Muut Archive, 9 years ago
2 1500 9 years ago
Archive · by Muut Archive, 9 years ago
2 4751 9 years ago
Archive · by Muut Archive, 9 years ago
1 3566 9 years ago
Archive · by Muut Archive, 9 years ago
3 1626 9 years ago