Re: [users@httpd] XML turned off

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

 



On 8/10/06, Ki Song <ki@xxxxxxxxxxxxxxx> wrote:
> On 8/10/06, Ki Song <ki@xxxxxxxxxxxxxxx> wrote:
>> A quick question: Is there something special that needs to be turned on on a
>> web server to allow it to display XML documents?
>>
>> The server we're on doesn't render any XML document.
>>
>> The exact same file that I created works on one web server, but does not
>> work on a different server.
>
> Servers don't display documents, they simply send them to the browser.
>
> Are you talking about the server transforming the document into html,
> or are you talking about the raw xml simply not being displayed in the
> browser?  If the latter, you should look at the content-type getting
> sent.  See the AddType directive.
>
> Joshua.

The raw XML is not being displayed in the browser.
Check out these two links:

http://mail.knifecenter.com/lookupdetail.xml
http://www.knifecenter.com/lookupdetail.xml

They are the exact same file. Yet, the second one does not show up at all in
my browser.

Here is exactly what your server sends:
HTTP/1.1 200 OK
Date: Thu, 10 Aug 2006 19:56:55 GMT
Server: Apache/2.0.46 (Red Hat)
Content-type: text/html; charset=UTF-8
Cache-control: no-store, no-cache, must-revalidate, max-age=0
Cache-control: post-check=0, pre-check=0
Pragma: no-cache
Connection: Close
MIME-Version: 1.0
Expires: Thu, 10 Aug 2006 19:56:55 GMT
Content-Length: 1

This tells me a few things:
1. You are using an ancient version of apache and should upgrade.

2. You have some very specific cache-control stuff being sent, which
implies a non-standard configuration.  Is this file really being
served directly from the filesystem, or is there some dynamic stuff
involved?

3. The Content-Length is 1, which means that apache believes the file
contains only one byte.  Are you sure the file really contains what
you think it does?

Is there anything interesting in the access and error logs?  Have you
tried "EnableSendfile Off / EnableMMAP off"?

Other than that, you should look for any place in your config where
special processing is activated for xml files.

Joshua.

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