Setting up apache HTTPd on Windows

Mark R

Diamond Member
Oct 9, 1999
8,513
14
81
Apache 2.0.54 (also tried 2.0.50 and 2.0.53)
I'm trying to publish large digital images at their native resolution - file sizes 3-4 MB.

The problem is the images won't be downloaded by clients (tried multipled browser, with and without proxies) only the first few kB of the image will be downloaded and then the transfer will stop (apache closes the TCP connection - verified with packet capture).

Is there a hidden maximum file size setting? - I've already checked the docs and can't find anything useful.
 

Mark R

Diamond Member
Oct 9, 1999
8,513
14
81
Problem solved.

Added the following line to the config file:
EnableSendfile off

It's a shame that the comments in the conf file don't say that there is a known bug in some OSs / Virus scanners / etc. that results in files being cut off after a few kB, and that uncommenting out this option solves them.
I had to consult the full documentation on every line in the conf file before I found this out.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
That's what the documentation is for, but you would think the Win32 package would have it disabled if it is indeed such a problem.
 

bob4432

Lifer
Sep 6, 2003
11,694
28
91
i have used apace win32 for a quite some time and have had peeps d/l larg files - 100MB+ and never had a problem...this is interesting...
 

Mark R

Diamond Member
Oct 9, 1999
8,513
14
81
I think it's probably an optional component, or a driver, or a virus scanner.

I have Panda Titanium 2005 which could conceivably be the cause. It certainly breaks other programs, as did 2004. Unfortuntely, there's no option to disable it's link to the TCP stack other than uninstalling or manually hacking the registry.

 

bob4432

Lifer
Sep 6, 2003
11,694
28
91
the more i think about it, a couple years ago i was using apache/php and the turnstyle andromeda script to stream my mp3s around my lan and also so i could play my music whenever i was at somebody's jobsite or house, and every so often, the songs would stop playing...maybe this had something to do with it. at that time i was running win2 serv, norton av corporate but this could have been the culprit....
 

Pabster

Lifer
Apr 15, 2001
16,987
1
0
Any particular reason you want to use httpd under winbloze?

Apache is an awesome httpd server but it runs better in Linux.
 

Mark R

Diamond Member
Oct 9, 1999
8,513
14
81
Any particular reason you want to use httpd under winbloze?

Because I just want an httpd for my main box to distribute files.

The software that I use most frequently is not available in Linux specific versions, and my experience with windows emulators on linux has been that they are not sufficiently stable for my purposes.
 

bob4432

Lifer
Sep 6, 2003
11,694
28
91
Originally posted by: Pabster
Any particular reason you want to use httpd under winbloze?

Apache is an awesome httpd server but it runs better in Linux.


my reason - i am not familiar with *nix and have not had the time to learn it. sure i have installed it and messed around with it, but i wouldn't feel very good about putting it up knowing as little as i do about it.