[H-GEN] Large File Support in Apache
trogspam at games.telstra.com
Thu May 20 20:55:45 EDT 2004
Question - I've been trying to get large file support to work reliably in
apache for a while but I'm running into problems. I've done quite a bit of
searching and tried several configurations, but I can't for the life of me
get it to serve files of > 2gb in size.
The closest I've got to a working configuration is by compiling
with -DRECORD_FORWARD -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - this
stops the error messages that you get with a default build (trying to access
a file generates a 403 Forbidden and an error message in the log that
indicates access was denied because the file was too big).
However, the Content-Length header isn't correct. On Red Hat 7, it comes up
as 'unknown'. On a brand new install of Red Hat 9 it is simply incorrect
(~70mb instead of the ~4gb it should be).
There appears to be a patch that a Novell engineer has created
(http://email@example.com/msg19009.html) so I'm
guessing that this is a known problem in the 1.x and 2.x versions, but just
thought I'd ask if anyone has a good method for making it work.
More information about the General