joomla/joomla-apache.conf

Mon, 17 Sep 2012 19:10:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:10:10 +0200
changeset 689
9fe04d4d4e5a
permissions
-rw-r--r--

Update to new version of vendor software although Oracle fails to deliver.
More specifically, newer db(3) patch revisions exist but Oracle has
removed them from the canonical download server URI for Berkely DB.

     1 ##
     2 ##  joomla-apache.conf -- Joomla Apache Custom Configuration
     3 ##
     5 ServerRoot             @l_prefix@
     6 ServerAdmin            root@@l_hostname@.@l_domainname@
     7 ServerName             @l_hostname@.@l_domainname@
     8 ServerTokens           Prod
     9 User                   @l_rusr@
    10 Group                  @l_rgrp@
    11 Listen                 127.0.0.1:8080
    13 #   runtime files
    14 PidFile                @l_prefix@/var/joomla/run/apache.pid
    15 ScoreBoardFile         @l_prefix@/var/joomla/run/apache.sb
    16 LockFile               @l_prefix@/var/joomla/run/apache.lck
    18 #   include apache-php
    19 Include                @l_prefix@/etc/apache/apache.d/apache-php.conf
    21 #  server behaviour
    22 Timeout                300
    23 KeepAlive              on
    24 MaxKeepAliveRequests   100
    25 KeepAliveTimeout       15
    26 MinSpareServers        5
    27 MaxSpareServers        10
    28 StartServers           5
    29 MaxClients             15
    30 MaxRequestsPerChild    500
    31 HostnameLookups        off
    32 UseCanonicalName       on
    34 #   access logging
    35 LogFormat              "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    36 LogFormat              "%h %l %u %t \"%r\" %>s %b" common
    37 LogFormat              "%{Referer}i -> %U" referer
    38 LogFormat              "%{User-agent}i" agent
    39 CustomLog              @l_prefix@/var/joomla/log/apache.access.log common
    41 #   error logging
    42 LogLevel               warn
    43 ErrorLog               @l_prefix@/var/joomla/log/apache.error.log
    44 ServerSignature        on
    46 #   secure root directory
    47 <Directory />
    48     Options FollowSymLinks
    49     AllowOverride None
    50 </Directory>
    52 #   browser specifics
    53 BrowserMatch "Mozilla/2"       nokeepalive
    54 BrowserMatch "MSIE 4\.0b2;"    nokeepalive downgrade-1.0 force-response-1.0
    55 BrowserMatch "RealPlayer 4\.0" force-response-1.0
    56 BrowserMatch "Java/1\.0"       force-response-1.0
    57 BrowserMatch "JDK/1\.0"        force-response-1.0
    59 #   SSL/TLS support
    60 <IfModule ssl_module>
    61     SSLRandomSeed           startup builtin
    62     SSLRandomSeed           connect builtin
    63     SSLMutex                sem
    64     SSLSessionCache         shmcb:@l_prefix@/var/joomla/run/apache.scache(512000)
    65     SSLSessionCacheTimeout  300
    66     SSLCipherSuite          ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    67     SetEnvIf User-Agent ".*MSIE.*" \
    68              nokeepalive ssl-unclean-shutdown \
    69              downgrade-1.0 force-response-1.0
    70     <Files ~ "\.(cgi|shtml|phtml|php?)$">
    71         SSLOptions +StdEnvVars
    72     </Files>
    73     <Directory "@l_prefix@/cgi">
    74         SSLOptions +StdEnvVars
    75     </Directory>
    76 </IfModule>
    78 #   configure PHP for Joomla!
    79 AddType           application/x-httpd-php .php
    80 php_admin_flag    register_globals      off
    81 php_admin_flag    safe_mode             off
    82 php_admin_flag    safe_mode_gid         off
    83 php_admin_flag    allow_url_fopen       off
    84 php_admin_flag    display_errors        on
    85 php_admin_value   log_errors            on
    86 php_admin_value   max_execution_time    60
    87 php_admin_value   max_input_time        60
    88 php_admin_value   memory_limit          8M
    89 php_admin_value   post_max_size         8M
    90 php_admin_value   include_path          .:@l_prefix@/lib/joomla/runtime
    92 #   configure Joomla!
    93 RewriteEngine     on
    94 RewriteRule       ^/$ /joomla/ [R,L]
    95 Alias             /joomla @l_prefix@/lib/joomla/runtime
    96 DocumentRoot      @l_prefix@/lib/joomla/runtime
    97 DirectoryIndex    index.php
    98 ErrorDocument     404 /index.php
    99 ExpiresByType     text/html A1
   100 <Directory        @l_prefix@/lib/joomla/runtime>
   101     Options       Indexes ExecCGI FollowSymLinks
   102     AllowOverride None
   103     Order         allow,deny
   104     Allow         from all
   105     RewriteEngine On
   106     RewriteBase   /joomla
   107     RewriteCond   %{REQUEST_URI} ^(/component/option,com)        [NC,OR]
   108     RewriteCond   %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
   109     RewriteCond   %{REQUEST_FILENAME} !-f
   110     RewriteCond   %{REQUEST_FILENAME} !-d
   111     RewriteRule   (.*) index.php
   112 </Directory>

mercurial