Replies: 2 comments 1 reply
-
It sounds like it's returning I'm not too familiar with Caddy's ins and outs, but are you sure this:
is correct? |
Beta Was this translation helpful? Give feedback.
-
Hi @rijkvanzanten , thanks for your response. The issue most probably is with the Caddyfile. I've managed to make it work by using this config:
I'm not really sure how good it is, but it let me install and now I can login to Directus. Added file_server I used handle because it says in the docs it's similar to location from nginx, and I tried to convert somehow the nginx config, but it also worked without I've redirected And also the path from handle is now I'll have to read more the caddy docs to understand everything in here and if there is a better way. |
Beta Was this translation helpful? Give feedback.
-
OS: Ubuntu 18.04
Web Server: Caddy v2
Directus: Git cloned from here
Hello,
I've started creating a new Directus installation and I'm trying to use it with Caddy.
I've managed to install the Database, PHP and I've set up Caddy using this Caddyfile (inspired from this):
Now when I go to
sub.domain.com
I get redirected tohttps://sub.domain.com/admin/
and it's throwing me this error:{"error":{"code":3,"message":"Unauthorized request","class":"Directus\\Exception\\UnauthorizedException","file":"\/var\/www\/directus\/src\/helpers\/app.php","line":287}}
I've found this . I get
401 Unauthorized
on everything excepthttps://sub.domain.com/server/ping
, which works and returnspong
.Is there something more that I maybe missed and I need to configure?
Or probably there's something wrong with my Caddyfile, as v2 changed the syntax and I rewrote it following the example in a bad way.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions