abiosoft / abiosoft/caddy-exec

Redirect output to a file

Offen
#22 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
155
Forks
21
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.