httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashley Williams <>
Subject [users@httpd] only 64k per file downloading from my webserver
Date Fri, 07 Oct 2005 23:02:41 GMT
Apache/2.0.52 Mac OS X Tiger)

I'm trying to configure my apache instance to serve jar files so have  
simply added the following entry to my httpd.conf file:

Alias /maven/repository /Users/ashley/Webroot/maven/repository
<Directory /Users/ashley/Webroot/maven/repository>
     Options None
     AllowOverride None
     Order Allow,Deny
     Allow from all

As a test I placed a jar file in the repository and went to it's url  
in my browser. Every single time the jar file was only partially  
downloaded so that viewing it with
jar tvf my.jar
always resulted in an unexpected end of file error.

The odd thing is that I run a subversion repository successfully on  
the same server. Any pointers as to where to start looking would be  
great. For completeness I've pasted my conf file below. In case it's  
relevant I've tried to slim it down roughly by removing directory  
listings and some mods that give info about my server.

I saw this in the error logs when I tried to do the download:
[Fri Oct 07 23:57:39 2005] [error] Optional hook test said: GET / 
maven/repository/javax/xml/jaxb-api/1.0.5/jaxb-api-1.0.5.jar HTTP/1.1
[Fri Oct 07 23:57:39 2005] [error] Optional function test said: GET / 
maven/repository/javax/xml/jaxb-api/1.0.5/jaxb-api-1.0.5.jar HTTP/1.1

also I notice that only 64k of the jar file downloads which is bound  
to be important!

It's highly likely that some of my attempts to secure my apache  
instance are causing this problem, not sure where to start though.


ServerRoot "/sw/var/apache2"

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#LockFile logs/accept.lock

<IfModule !mpm_netware.c>
<IfModule !perchild.c>
#ScoreBoardFile logs/apache_runtime_status

<IfModule !mpm_netware.c>
PidFile "/private/var/run/"
#PidFile logs/

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients         150
MaxRequestsPerChild  0

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0

<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0

<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0

<IfModule beos.c>
StartThreads               10
MaxClients                 50
MaxRequestsPerThread       10000

<IfModule mpm_netware.c>
ThreadStackSize      65536
StartThreads           250
MinSpareThreads         25
MaxSpareThreads        250
MaxThreads            1000
MaxRequestsPerChild      0

<IfModule mpmt_os2.c>
StartServers           2
MinSpareThreads        5
MaxSpareThreads       10
MaxRequestsPerChild    0

Listen 80

LoadModule access_module /sw/lib/apache2/modules/
LoadModule auth_module /sw/lib/apache2/modules/
LoadModule file_cache_module /sw/lib/apache2/modules/
LoadModule echo_module /sw/lib/apache2/modules/
LoadModule charset_lite_module /sw/lib/apache2/modules/
LoadModule cache_module /sw/lib/apache2/modules/
LoadModule disk_cache_module /sw/lib/apache2/modules/
LoadModule mem_cache_module /sw/lib/apache2/modules/
LoadModule example_module /sw/lib/apache2/modules/
LoadModule case_filter_module /sw/lib/apache2/modules/
LoadModule case_filter_in_module /sw/lib/apache2/modules/
LoadModule ext_filter_module /sw/lib/apache2/modules/
LoadModule include_module /sw/lib/apache2/modules/
LoadModule deflate_module /sw/lib/apache2/modules/
LoadModule log_config_module /sw/lib/apache2/modules/
LoadModule logio_module /sw/lib/apache2/modules/
LoadModule env_module /sw/lib/apache2/modules/
LoadModule cern_meta_module /sw/lib/apache2/modules/
LoadModule setenvif_module /sw/lib/apache2/modules/
LoadModule optional_hook_export_module /sw/lib/apache2/modules/
LoadModule optional_hook_import_module /sw/lib/apache2/modules/
LoadModule optional_fn_import_module /sw/lib/apache2/modules/
LoadModule optional_fn_export_module /sw/lib/apache2/modules/
LoadModule mime_module /sw/lib/apache2/modules/
LoadModule dav_module /sw/lib/apache2/modules/
LoadModule status_module /sw/lib/apache2/modules/
LoadModule asis_module /sw/lib/apache2/modules/
LoadModule cgi_module /sw/lib/apache2/modules/
LoadModule dav_fs_module /sw/lib/apache2/modules/
LoadModule negotiation_module /sw/lib/apache2/modules/
LoadModule dir_module /sw/lib/apache2/modules/
LoadModule imap_module /sw/lib/apache2/modules/
LoadModule userdir_module /sw/lib/apache2/modules/
LoadModule alias_module /sw/lib/apache2/modules/
LoadModule dav_svn_module     /sw/lib/apache2/modules/
LoadModule authz_svn_module   /sw/lib/apache2/modules/

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>

User www
Group www


UseCanonicalName Off

DocumentRoot "/Users/ashley/Webroot"

     Options None
     AllowOverride None
     Order Deny,Allow
     Deny from all

<Directory "/Users/ashley/Webroot">
     Options None
     AllowOverride None
     Order Allow,Deny
     Allow from all

Alias /maven/repository /Users/ashley/Webroot/maven/repository
<Directory /Users/ashley/Webroot/maven/repository>
     Options None
     AllowOverride None
     Order Allow,Deny
     Allow from all

<Location /svn/publicrepos>
     DAV svn
     SVNPath /Users/ashley/Webroot/svn/public_repos
     AuthType Basic
     AuthName "Subversion public repository"
     AuthUserFile /Users/ashley/.htpasswd
       Require valid-user
     Order Allow,Deny
     Allow from all

<Location /svn/collabrepos>
     DAV svn
     SVNPath /Users/ashley/Webroot/svn/collabrepo
     AuthType Basic
     AuthName "project collaboration"
     AuthUserFile /Users/ashley/.htpasswd
       Require valid-user
     Order Allow,Deny
     Allow from all

DirectoryIndex index.html

AccessFileName .htaccess

<Files ~ "^\.ht">
     Order allow,deny
     Deny from all

TypesConfig /sw/etc/apache2/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
     MIMEMagicFile /sw/etc/apache2/magic

HostnameLookups Off

ErrorLog logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i 
\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access_log common

ServerTokens Prod

ServerSignature Off

<IfModule mod_cgid.c>

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddLanguage hr .hr

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca  
es sv tw

ForceLanguagePriority Prefer Fallback

AddDefaultCharset ISO-8859-1

AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
# For russian, more than one charset is used (depends on client,  
AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8

AddCharset GB2312      .gb2312 .gb
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5        .big5 .b5
AddCharset EUC-TW      .euc-tw
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis

AddType application/x-tar .tgz
AddType image/x-icon .ico

AddHandler type-map var

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider"  
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

<IfModule mod_ssl.c>
     Include /sw/etc/apache2/ssl.conf

Include /private/etc/httpd/users

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message