Daniel A. Ramaley wrote: > On 2009-03-10 at 14:34:30, you wrote: > >I want to set up the web server to share file, but i know apache-1.3.x > >(which is openbsd default httpd) had the 4G file size limit, can i > > break this limit? > > I don't know the correct answer to this question, but i thought of a > possible work-around in the event the answer is "no". > > Could you write a CGI program that serves the file? I don't know where > Apache's 4 GB limit is. But if the limitation is in how Apache accesses > the filesystem and not in how it manages network connections, then > maybe a program that is capable of reading large files could get around > the limit. This would most likely require mangling the URLs to the > large files to really point to the program, unless you can do some
The limitation is 2Gb on 32-bit platforms because of off_t (man lseek). Stock ftpd also has mentioned limitation (try to REST a file beyond 2Gb offset). Using any 64-bit platform will solve the problem due to bigger off_t, but if it's not a case, one can use Apache 2.2.x from ports. Alexey