httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fREW Schmidt <>
Subject [users@httpd] Successful upgrade from 2.2.22 to 2.4.1
Date Wed, 28 Mar 2012 15:48:32 GMT

I've just successfully upgraded everything in our Apache setup from
2.2.22 to 2.4.1.

The strangest part was the log rotation.  We're on windows so we use the bundled
logrotate function.  We basically had to change it from |bin/logrotate to
|bin/logrotate.exe.  We also changed from 32 bit to 64 bit apache so that could
have caused that as well.

Anyway, for anyone who cares, I figured I'd send out the diff.  Feel
free to comment
on the changes.  There are a number of other changes I plan on making
at some point
(for example merging our Location /, Directory /, and Directory
$document_root) but
one thing at a time :-)

(note, this is template toolkit as the config file is moderately generated)

   -ServerRoot "C:/Program Files[% IF is_64_bit %] (x86)[% END
%]/Apache Software Foundation/Apache2.2"
   +ServerRoot "C:/Program Files[% IF is_64_bit %] (x86)[% END
%]/Apache Software Foundation/Apache2.4"
    Listen 80

    LoadModule auth_basic_module modules/
   +LoadModule authn_core_module modules/
   +LoadModule authz_core_module modules/
    LoadModule authz_host_module modules/
    LoadModule cgi_module modules/
    LoadModule dir_module modules/
    LoadModule env_module modules/
    LoadModule log_config_module modules/
    LoadModule mime_module modules/
    LoadModule setenvif_module modules/
    LoadModule headers_module modules/
    LoadModule proxy_module modules/
    LoadModule proxy_http_module modules/
   +# slotmem_shm required for proxy_http
   +LoadModule slotmem_shm_module modules/
    LoadModule proxy_balancer_module modules/
   +# lbmethod_byrequests required for proxy_balancer
   +LoadModule lbmethod_byrequests_module modules/
    LoadModule cache_module modules/
   -LoadModule mem_cache_module modules/
   +LoadModule cache_disk_module modules/
    LoadModule deflate_module modules/
    LoadModule rewrite_module modules/

    RewriteEngine on
    RewriteRule ^/cgi/ip.plx /app/checkin/checkin [PT]

    ProxyRequests Off
    <Proxy balancer://my_cluster>
    ProxyPass /app balancer://my_cluster/

   -# This fixes a bug with the OS - See for details

    DocumentRoot "[% drive %]/inetpub/wwwroot"

   -# Does nothing in windows - do not use
   +# Now it does do things in windows, should we use it?
    #ThreadLimit 64
    ThreadsPerChild 1024
    MaxRequestsPerChild 1000
    MaxMemFree 0
    EnableSendFile On

    KeepAlive On
    KeepAliveTimeout 15
    MaxKeepAliveRequests 80

   -CacheEnable mem /
   -MCacheSize 4096
   -MCacheMaxObjectCount 100
   -MCacheMinObjectSize 1
   -MCacheMaxObjectSize 204800
   +CacheEnable disk /
   +CacheMinFileSize 1
   +CacheMaxFileSize 204800
   +CacheRoot "[% drive %]/var/cacheroot"

    <Location />
       SetOutputFilter DEFLATE
       BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
       SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

       # Make sure proxies don't deliver the wrong content
       Header append Vary User-Agent env=!dont-vary

       # disable Vary header if there is no User-Agent (dumb gameboy hardware)
       SetEnvIf User-Agent . lynx_has_ua
       Header unset vary env=!lynx_has_ua
       Header unset status env=!lynx_has_ua
       Header unset x-catalyst env=!lynx_has_ua

    <Directory />
        Options FollowSymLinks
   -    AllowOverride None
   -    Order deny,allow
   -    Allow from all
   +    Require all granted

    <Directory "[% drive %]/inetpub/wwwroot">
        Options FollowSymLinks ExecCGI
   -    AllowOverride None
   -    Order allow,deny
   -    Allow from all
   +    Require all granted

    DirectoryIndex default.htm

    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <FilesMatch "^\.ht">
   -    Order allow,deny
   -    Deny from all
   -    Satisfy All
   +    Require all denied

    <FilesMatch ".*\.pm">
   -    Order allow,deny
   -    Deny from all
   -    Satisfy All
   +    Require all denied

   -ErrorLog "|bin/rotatelogs [% drive
%]/Inetpub/log/apache/error-%Y-%m-%d.log 86400"
   +ErrorLog "|bin/rotatelogs.exe [% drive
%]/Inetpub/log/apache/error-%Y-%m-%d.log 86400"

    LogLevel warn

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
   -CustomLog "|bin/rotatelogs [% drive
%]/Inetpub/log/apache/access-%Y-%m-%d.log 86400" common
   -DefaultType text/plain
   +CustomLog "|bin/rotatelogs.exe [% drive
%]/Inetpub/log/apache/access-%Y-%m-%d.log 86400" common

    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType text/plain .ts1
    AddType text/plain .ts2
    AddType text/plain .ts3
    AddType text/plain .tsx

    AddHandler cgi-script .plx .pl
    ErrorDocument 404 /error404.htm

Hope this helps someone out there :-)

fREW Schmidt

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message