Serving a file (e.g. in Apache) from a named pipe (made with mkfifo)
-1
votes
1
answer
81
views
Let's say I use Apache, and that I am in
/var/www/html/
. I do:
mkfifo test.tar
tar cvf - ~/test/* > test.tar &
In a browser, when trying to download http://localhost/test.tar
I get:
ERR_EMPTY_RESPONSE
(didn’t send any data)
Is there a specific parameter of mkfifo
that would the pipe look really like a regular file? Here the problems seems to come from the fact the file is a named pipe.
In my real example, I might use different webservers (not Apache), like [CivetWeb
](https://github.com/civetweb/civetweb) , but first I want to analyze if it works with Apache (that I use the most).
Asked by Basj
(2579 rep)
Jul 13, 2025, 03:26 PM
Last activity: Jul 21, 2025, 07:11 AM
Last activity: Jul 21, 2025, 07:11 AM