Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149928 - apache1 doesn't work when using ServerType inetd
Summary: apache1 doesn't work when using ServerType inetd
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-03 00:59 UTC by Kiko
Modified: 2006-10-03 16:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kiko 2006-10-03 00:59:48 UTC
fprintf(stderr, "Processing config directory: %s\n", fname); 
fprintf(stderr, " Processing config file: %s\n", fnew->fname);

Lines 1231 and 1268 from src/main/http_config.c should be commented out.
It sends msgs to the stderr when starting apache,
and that's passed to x(inetd) and messes up the headers
i just added a // in the beginning of those 2 lines and i was able to run
apache just fine on xinetd

with those 2 lines it only works using IE, other browsers like Firefox don't work

PS: i tested this on apache1.3.34 and .37

here's my /etc/xinetd.d/apache conf
----------------------------
service http
{
        disable = no
        socket_type = stream
        wait = no
        user = root
        server = /usr/sbin/apache
        server_args = -d /etc/apache -f httpd.conf
        port = 80
}
-------------------------------------------
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-10-03 16:04:51 UTC
http://httpd.apache.org/docs/1.3/mod/core.html#servertype

"Inetd mode is no longer recommended and does not always work properly. Avoid it if at all possible."

Apache 1.3 is obsolete, and is only in the tree for those that are unable to move to 2.0. Only security fixes will be provided.