abiosoft / abiosoft/caddy-exec

Redirect output to a file

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
155
Forks
21
PR merge metrics
No merged PRs in 30d

Description

I'm trying to redirect the output of a command to a file so that it can be served. Is this possible?

```
route /domains {
root * /var/www/localhost
exec /bin/ls /var/www > /var/www/localhost/domains {
pass_thru
}
file_server /domains
}
```
The /var/www/localhost/domains file exists but never gets populated and there are no errors on the server.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.