[oi-dev] Apache2 in hipster broken?

Gary Gendel gary at genashor.com
Fri Nov 15 12:01:14 UTC 2013


Alexander,

I don't think I have anything particularly special.  I've included what 
I thought might be helpful. I stripped the comments out of the conf 
files.  This information come from the working BE.  If you need 
something else just ask.

Gary

$ ls -l conf.d
---------------
-rw-r--r-- 1 root bin   158 Oct 18  2009 dtrace.conf
-rw-r--r-- 1 root bin   414 Feb  5  2010 fcgid.conf
-rw-r--r-- 1 root bin   825 Jul  8  2011 jk.conf
-rw-r--r-- 1 root bin  3951 Aug  4 08:20 modules-32.load
-rw-r--r-- 1 root bin  4152 Aug  4 08:20 modules-64.load
-rw-r--r-- 1 root bin   333 Aug 22 11:26 perl.conf
-r--r--r-- 1 root bin   606 Aug 22 11:26 php54.conf
-rw-r--r-- 1 root bin 10801 Apr 19  2011 ssl.conf
-rw-r--r-- 1 root bin   173 Jul  8  2011 workers.properties

httpd.conf:
--------------
ServerRoot "/usr/apache2/2.2"
Listen 10.10.0.1:80
<IfDefine 64bit>
Include /etc/apache2/2.2/conf.d/modules-64.load
</IfDefine>
<IfDefine !64bit>
Include /etc/apache2/2.2/conf.d/modules-32.load
</IfDefine>
<IfModule !mpm_netware_module>
User webservd
Group webservd
</IfModule>
ServerAdmin webmaster at genashor.com
ServerName www.genashor.com
DocumentRoot "/usr/local/apache2/htdocs"
<Directory />
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     Deny from all
</Directory>
<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride FileInfo Options Indexes
</Directory>
UserDir public_html
<Directory "/usr/local/apache2/htdocs/wiki">
     # We want this to be secure in order to prevent snooping 
proprietary info
     RewriteEngine ON
     RewriteCond %{HTTPS} !on
     RewriteRule ^.* https://www.genashor.com/wiki/doku.php
</Directory>
Directory /home/*/public_html>
     AllowOverride FileInfo AuthConfig Limit
     Options Indexes FollowSymLinks IncludesNoExec
     Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
     <Limit GET POST OPTIONS PROPFIND>
         Order allow,deny
         Allow from all
     </Limit>
     <LimitExcept GET POST OPTIONS PROPFIND>
         Order deny,allow
         Deny from all
     </LimitExcept>
</Directory>
<Directory /archive/gary/Video>
     AllowOverride FileInfo AuthConfig Limit
     Options Indexes MultiViews IncludesNoExec
     IndexOptions FancyIndexing
     Order allow,deny
     Allow from all
</Directory>
<Directory "/usr/local/apache2/htdocs/z-push">
     Options -Indexes +FollowSymLinks
     php_value register_globals off
     php_value magic_quotes_gpc off
     php_value magic_quotes_runtime off
     php_value short_open_tag on
     php_value allow_call_time_pass_reference on
</Directory>
<IfModule dir_module>
     DirectoryIndex Welcome.html index.html index.html.var index.php 
index.cgi
</IfModule>
<FilesMatch "^\.ht">
     Order allow,deny
     Deny from all
     Satisfy All
</FilesMatch>
ErrorLog "|/usr/bin/logger -p local3.warn -t apache"
LogLevel warn
<IfModule log_config_module>
     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
\"%{User-Agent}i\"" combined
     LogFormat "%h %l %u %t \"%r\" %>s %b" common
     LogFormat "%h %>s %b \"%r\" \"%{User-Agent}i\"" syslog
     <IfModule logio_module>
       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
\"%{User-Agent}i\" %I %O" combinedio
     </IfModule>
     CustomLog "|/usr/bin/logger -p local3.info -t apache" syslog
</IfModule>
<IfModule alias_module>
     Alias /icons/ "/usr/local/apache2/icons/"
     Alias /mail "/usr/local/apache2/htdocs/roundcubemail"
     Alias /email "/usr/local/apache2/htdocs/squirrelmail"
     Alias /lists "/usr/local/apache2/cgi-bin/ezmlm-browse"
     Alias /sara "/home/sara/public_html/Portfolio"
     Alias /Video "/archive/gary/Video"
     <Directory "/usr/local/apache2/icons">
         Options Indexes MultiViews
         AllowOverride None
         Order allow,deny
         Allow from all
     </Directory>
     ScriptAlias /cgi-bin/ "/var/apache2/2.2/cgi-bin/"
<Directory "/var/apache2/2.2/cgi-bin">
     AllowOverride None
     Options None
     Order allow,deny
     Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
     TypesConfig /etc/apache2/2.2/mime.types
     AddType application/x-compress .Z
     AddType application/x-gzip .gz .tgz
</IfModule>
Include /etc/apache2/2.2/conf.d/*.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule prefork.c>
     ListenBacklog 8192
     ServerLimit 2048
     MaxClients 2048
</IfModule>
ServerTokens ProductOnly
ServerSignature Off

ssl.conf:
----------
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect file:/dev/urandom 512
SSLCryptoDevice pkcs11
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
SSLPassPhraseDialog  builtin
SSLSessionCache "shmcb:/var/run/apache2/2.2/ssl_scache(512000)"
SSLSessionCacheTimeout  300
SSLMutex  "file:/var/run/apache2/2.2/ssl_mutex"
<VirtualHost _default_:443>
DocumentRoot "/usr/local/apache2/htdocs"
ServerName www.genashor.com:443
ServerAdmin webmaster at genashor.com
ErrorLog "|/usr/bin/logger -p local4.warn -t apachessl"
TransferLog "|/usr/bin/logger -p local4.info -t apachessl"
SSLEngine on
SSLCipherSuite 
ALL:!ADH:!EXPORT56:-AES256-SHA:-DHE-RSA-AES256-SHA:-DHE-DSS-AES256-SHA:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
     SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/var/apache2/2.2/cgi-bin">
     SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
          nokeepalive ssl-unclean-shutdown \
          downgrade-1.0 force-response-1.0
CustomLog "/var/apache2/2.2/logs/ssl_request_log" \
           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>

On 11/15/2013 01:18 AM, Alexander Pyhalov wrote:
> Hello.
>
> On 11/15/2013 01:42, Gary Gendel wrote:
>> Looks like apache in hipster has run into this bug:
>>
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=54993
>>
>> In my case, it looks like apache doesn't even respond to requests. The
>> logs have a stream of:
>>
>> (81)File descriptor in bad state: apr_pollset_poll failed. Attempting to
>> shutdown process gracefully
>>
>
> Do you have any special configuration options (e.g. some modules) or
> does it happen with default config? What are the steps to reproduce
> this error?





More information about the oi-dev mailing list