Skip to content
This repository was archived by the owner on Aug 19, 2023. It is now read-only.

Parse error: invalid root directory #16

@stp-ip

Description

@stp-ip

Something is going wrong and I seem to not get down to the issue.

I tried the following configs:

    :8080 {
      root /etc/source/files
      gzip
      basicauth / user {$BASICAUTH_PASSWORD}
      search
      log stdout
      errors stdout
    }
    :8080 {
      root /etc/source/files
      gzip
      basicauth / user {$BASICAUTH_PASSWORD}
      search ^/
      log stdout
      errors stdout
    }
    :8080 {
      root /etc/source/files
      gzip
      basicauth / user {$BASICAUTH_PASSWORD}
      search /
      log stdout
      errors stdout
    }
    :8080 {
      root /etc/source/files
      gzip
      basicauth / user {$BASICAUTH_PASSWORD}
      search / /search
      log stdout
      errors stdout
    }
    :8080 {
      root /etc/source/files
      gzip
      basicauth / user {$BASICAUTH_PASSWORD}
      search / {
      }
      log stdout
      errors stdout
    }

It always ends the same:

Parse error: [search]: `invalid root directory`

Caddy has the latest build from the download page.
Thanks for any pointers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions