[users@httpd] only 64k per file downloading from my webserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Apache/2.0.52 Mac OS X Tiger)
Hi,

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
</Directory>

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.

Thanks
AW


ServerRoot "/sw/var/apache2"

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

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


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

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

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

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

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

<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0
</IfModule>

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

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

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

Listen 80

LoadModule access_module /sw/lib/apache2/modules/mod_access.so
LoadModule auth_module /sw/lib/apache2/modules/mod_auth.so
LoadModule file_cache_module /sw/lib/apache2/modules/mod_file_cache.so
LoadModule echo_module /sw/lib/apache2/modules/mod_echo.so
LoadModule charset_lite_module /sw/lib/apache2/modules/ mod_charset_lite.so
LoadModule cache_module /sw/lib/apache2/modules/mod_cache.so
LoadModule disk_cache_module /sw/lib/apache2/modules/mod_disk_cache.so
LoadModule mem_cache_module /sw/lib/apache2/modules/mod_mem_cache.so
LoadModule example_module /sw/lib/apache2/modules/mod_example.so
LoadModule case_filter_module /sw/lib/apache2/modules/mod_case_filter.so
LoadModule case_filter_in_module /sw/lib/apache2/modules/ mod_case_filter_in.so
LoadModule ext_filter_module /sw/lib/apache2/modules/mod_ext_filter.so
LoadModule include_module /sw/lib/apache2/modules/mod_include.so
LoadModule deflate_module /sw/lib/apache2/modules/mod_deflate.so
LoadModule log_config_module /sw/lib/apache2/modules/mod_log_config.so
LoadModule logio_module /sw/lib/apache2/modules/mod_logio.so
LoadModule env_module /sw/lib/apache2/modules/mod_env.so
LoadModule cern_meta_module /sw/lib/apache2/modules/mod_cern_meta.so
LoadModule setenvif_module /sw/lib/apache2/modules/mod_setenvif.so
LoadModule optional_hook_export_module /sw/lib/apache2/modules/ mod_optional_hook_export.so LoadModule optional_hook_import_module /sw/lib/apache2/modules/ mod_optional_hook_import.so LoadModule optional_fn_import_module /sw/lib/apache2/modules/ mod_optional_fn_import.so LoadModule optional_fn_export_module /sw/lib/apache2/modules/ mod_optional_fn_export.so
LoadModule mime_module /sw/lib/apache2/modules/mod_mime.so
LoadModule dav_module /sw/lib/apache2/modules/mod_dav.so
LoadModule status_module /sw/lib/apache2/modules/mod_status.so
LoadModule asis_module /sw/lib/apache2/modules/mod_asis.so
LoadModule cgi_module /sw/lib/apache2/modules/mod_cgi.so
LoadModule dav_fs_module /sw/lib/apache2/modules/mod_dav_fs.so
LoadModule negotiation_module /sw/lib/apache2/modules/mod_negotiation.so
LoadModule dir_module /sw/lib/apache2/modules/mod_dir.so
LoadModule imap_module /sw/lib/apache2/modules/mod_imap.so
LoadModule userdir_module /sw/lib/apache2/modules/mod_userdir.so
LoadModule alias_module /sw/lib/apache2/modules/mod_alias.so
LoadModule dav_svn_module     /sw/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module   /sw/lib/apache2/modules/mod_authz_svn.so


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

User www
Group www
</IfModule>
</IfModule>

ServerAdmin apache@xxxxxxxxxxxxxxxxxx

UseCanonicalName Off

DocumentRoot "/Users/ashley/Webroot"

<Directory>
    Options None
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

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

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

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

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

DirectoryIndex index.html

AccessFileName .htaccess

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

TypesConfig /sw/etc/apache2/mime.types

DefaultType text/plain

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

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>
</IfModule>

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, mostly):
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" redirect-carefully
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
</IfModule>


Include /private/etc/httpd/users



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux