64-66 bytes (binary/not-printable) precedes http responses?

Discussion in 'Apache' started by lbohan719, Oct 7, 2010.

  1. #1
    64-66 bytes (binary/not-printable) precedes http response to GET / HTTP/1.0

    Does anyone here recognize this behavior? (see below...)
    this is with bare-bones httpd.conf (also see below)

    Any suggestions appreciated, including better places to ask,
    and/or terms/phrases to google on. So far, I could not find
    someone reporting a similar problem.

    this problem is confined, so far, to one test system,
    (when using the same httpd.conf on other systems, those systems are fine)

    I have to believe it's a configuration issue, but what?

    tia,
    -ldb


    http data/payload (per tcpdump/wireshark)

    0040 00 09 5b bd 01 21 00 26 9e eb 35 06 08 00 ..[..! .&..5...
    0050 45 00 0b 84 e7 a9 40 00 40 06 00 00 ac 16 b6 2c E.....@. @......,
    0060 ac 16 b6 22 00 50 b2 1f b5 68 df 2b 49 ad 2b f9 ...".P.. .h.+I.+.
    0070 80 10 00 6c c4 82 00 00 01 01 08 0a 12 be 38 83 ...l.... ......8.
    0080 07 a8 2f 7b 48 54 54 50 2f 31 2e 31 20 32 30 30 ../{HTTP /1.1 200
    0090 20 4f 4b 0d 0a 44 61 74 65 3a 20 54 68 75 2c 20 OK..Dat e: Thu,
    00a0 30 37 20 4f 63 74 20 32 30 31 30 20 31 37 3a 35 07 Oct 2 010 17:5
    00b0 30 3a 35 32 20 47 4d 54 0d 0a 53 65 72 76 65 72 0:52 GMT ..Server
    00c0 3a 20 41 70 61 63 68 65 2f 32 2e 32 2e 31 35 20 : Apache /2.2.15
    00d0 28 46 65 64 6f 72 61 29 0d 0a 4c 61 73 74 2d 4d (Fedora) ..Last-M
    00e0 6f 64 69 66 69 65 64 3a 20 57 65 64 2c 20 30 36 odified: Wed, 06
    00f0 20 4f 63 74 20 32 30 31 30 20 32 33 3a 31 30 3a Oct 201 0 23:10:
    ...etc...


    $ lynx -dump http://somehost/ | od -t x1z | head -n8
    0000000 20 20 20 20 5b c2 bd 21 26 c3 ab 35 45 c3 9d 40 > [..!&..5E..@<
    0000020 40 c2 ac c2 b6 2c c2 ac c2 b6 22 50 c3 a7 41 74 >@....,...."P..At<
    0000040 2c 47 c3 a8 6c c3 84 20 50 47 48 54 54 50 2f 31 >,G..l.. PGHTTP/1<
    0000060 2e 31 20 32 30 30 20 4f 4b 20 44 61 74 65 3a 20 >.1 200 OK Date: <
    0000100 54 68 75 2c 20 30 37 20 4f 63 74 20 32 30 31 30 >Thu, 07 Oct 2010<
    0000120 0a 20 20 20 31 37 3a 31 33 3a 35 30 20 47 4d 54 >. 17:13:50 GMT<
    0000140 20 53 65 72 76 65 72 3a 20 41 70 61 63 68 65 2f > Server: Apache/<
    0000160 32 2e 32 2e 31 35 20 28 46 65 64 6f 72 61 29 20 >2.2.15 (Fedora) <
    $

    $ nc somehost.com 80
    HEAD / HTTP/1.0

    HTTP/1.1 200 OK
    Date: Thu, 07 Oct 2010 17:27:37 GMT
    Server: Apache/2.2.15 (Fedora)
    Last-Modified: Wed, 06 Oct 2010 23:10:37 GMT
    ETag: "21a004-3c74-491fae2a29540"
    Accept-Ranges: bytes
    Content-Length: 15476
    Connection: close
    Content-Type: text/html
    X-Pad: avoid browser bug


    /etc/httpd/httpd.conf :

    ServerAdmin JoeBloggs@acme.com
    ServerRoot "/etc/httpd"
    DocumentRoot "/var/www/html"
    ErrorLog "/var/log/httpd/httpd.log"
    Listen x.x.x.x:80
    User apache
    Group apache
    StartServers 2
    MinSpareServers 1
    MaxSpareServers 2
    LogLevel debug
    ServerSignature On
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule include_module modules/mod_include.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule alias_module modules/mod_alias.so
    DefaultType text/html
    DirectoryIndex index.html
    <Directory />
    Options All
    AllowOverride None
    Order allow,deny
    Allow from 172.16.0.0/12
    </Directory>
    <Directory "/var/www/html">
    Options All
    AllowOverride None
    Order allow,deny
    Allow from 172.16.0.0/12
    </Directory>
     
    lbohan719, Oct 7, 2010 IP