Apache configuration woes

Associate
Joined
20 Aug 2010
Posts
1,099
Location
Not Coventry
Hiya,

At work we are migrating our RCS over to Git and, as our IT department have a pathological fear of Linux, I've ended up having to sort it out. The IT department did leave me a present though, they have installed the server with CentOS, a Linux variant I have rapidly grown to despise with every fibre of my being.

After battling through issues with IPTables, PAM, LDAP and SELinux I am now in the situation where most things work (SSH, public key authentication, Git access), but the sticking point now is GitWeb.

I've tried configuring Apache and the configuration looks reasonable, but when trying to access the page it only half loads before eventually timing out.

The only useful output I can find in the logs is the following in /var/log/httpd/error_log:
Code:
[Fri Feb 15 10:26:32 2013] [warn] [client 12.34.56.78] Timeout waiting for output from CGI script /var/www/git/gitweb.cgi
[Fri Feb 15 10:26:32 2013] [error] [client 12.34.56.78] (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed

Copies of my git.conf, httpd.conf and gitweb.conf can he found here.


Does anyone have a clue as to anything obvious I've done wrong, or any hints about how I can try to get better debug output to try and diagnose the issue?
 
FIXED!!

Turns out that LDAP was giving me even more grief than I expected. Each connection was causing an LDAP authentication which had a hard bind policy and a timeout longer than the apache timeout.
Setting LDAP to use a soft bind policy and decreasing the timeout means everything I want is now working.

Did I mention before how much I hate CentOS?
 
Back
Top Bottom