Well, this is about how to handle
(space) in file-paths.
[I’m talking about `import` but it’s the same with everything else having a path; like `root` or the `log` directives.]
1. Caddy version (caddy version
):
v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=
2. How I run Caddy:
a. System environment:
Linux x64
b. Command:
caddy run
c. Service/unit/compose file:
none
paste full file contents here
d. My complete Caddyfile or JSON config:
# any Caddyfile content
import ~/myPath/with some space/in-it.conf
# any Caddyfile content
3. The problem I’m having:
Well, Caddy doesn’t behave well with spaces in paths because space is special.
4. Error messages and/or full log output:
Error during parsing: File to import not found: ~/myPath/with some space/in-it.conf
5. What I already tried:
I already tried using %20
or %A0
instead of space within the path. But it didn’t helped.
And many other things I already forgot.
6. Links to relevant resources:
The docs for import, what else
Maybe this too: