abiosoft / abiosoft/caddy-exec
Redirect output to a file
Open
- 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.