core_output_filter: writing data to the network</a></h3>
<p>Apache uses the <code>sendfile</code> syscall on platforms
where it is available in order to speed sending of responses.
Unfortunately, on some systems, Apache will detect the presence of
<code>sendfile</code> at compile-time, even when it does not work
properly. This happens most frequently when using network or
other non-standard file-system.</p>
<p>Symptoms of this problem include the above message in the error
log and zero-length responses to non-zero-sized files. The
problem generally occurs only for static files, since dynamic
content usually does not make use of <code>sendfile</code>.</p>
<p>To fix this problem, simply use the <code class="directive"><a href="../mod/core.html#enablesendfile">EnableSendfile</a></code> directive to disable
<code>sendfile</code> for all or part of your server. Also see
the <code class="directive"><a href="../mod/core.html#enablemmap">EnableMMAP</a></code>, which can
<p>If you get error messages related to the <code>AcceptEx</code> syscall
on win32, see the <code class="directive"><a href="../mod/mpm_winnt.html#win32disableacceptex">Win32DisableAcceptEx</a></code>
directive.</p>
<h3><a name="error.scriptheaders" id="error.scriptheaders">Premature end of script
headers</a></h3>
<p>Most problems with CGI scripts result in this message written in the
error log together with an <code>Internal Server Error</code> delivered
to the browser. A guide to helping debug this type of problem is
available in the <a href="../howto/cgi.html#troubleshoot">CGI
tutorial</a>.</p>
</div></div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="../en/faq/error.html" title="English"> en </a> |
<a href="../ko/faq/error.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>